Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(975)

Unified Diff: chrome/browser/extensions/api/mdns/mdns_api.h

Issue 166053003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: | Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/mdns/mdns_api.h
diff --git a/chrome/browser/extensions/api/mdns/mdns_api.h b/chrome/browser/extensions/api/mdns/mdns_api.h
index dabf325cc77e2d8e6a2f1b629b19a8284bb95eba..ba8f34f69cfd9716efb88deb0843f5388f89b09a 100644
--- a/chrome/browser/extensions/api/mdns/mdns_api.h
+++ b/chrome/browser/extensions/api/mdns/mdns_api.h
@@ -14,6 +14,10 @@
#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "extensions/browser/event_router.h"
+namespace content {
+class BrowserContext;
+}
+
namespace extensions {
class DnsSdRegistry;
@@ -26,10 +30,10 @@ class MDnsAPI : public ProfileKeyedAPI,
public EventRouter::Observer,
public DnsSdRegistry::DnsSdObserver {
public:
- explicit MDnsAPI(Profile* profile);
+ explicit MDnsAPI(content::BrowserContext* context);
virtual ~MDnsAPI();
- static MDnsAPI* Get(Profile* profile);
+ static MDnsAPI* Get(content::BrowserContext* context);
// ProfileKeyedAPI implementation.
static ProfileKeyedAPIFactory<MDnsAPI>* GetFactoryInstance();
@@ -66,7 +70,7 @@ class MDnsAPI : public ProfileKeyedAPI,
// Ensure methods are only called on UI thread.
base::ThreadChecker thread_checker_;
- Profile* const profile_;
+ content::BrowserContext* const browser_context_;
// Lazily created on first access and destroyed with this API class.
scoped_ptr<DnsSdRegistry> dns_sd_registry_;
// Current set of service types registered with the registry.
« no previous file with comments | « chrome/browser/extensions/api/management/management_api.cc ('k') | chrome/browser/extensions/api/mdns/mdns_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698