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

Side by Side Diff: chrome/browser/extensions/chrome_extensions_browser_client.h

Issue 220353002: Remove //chrome dependency from ExtensionPrefs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/extensions/chrome_notification_observer.h" 12 #include "chrome/browser/extensions/chrome_notification_observer.h"
13 #include "extensions/browser/extensions_browser_client.h" 13 #include "extensions/browser/extensions_browser_client.h"
14 14
15 namespace base { 15 namespace base {
16 class CommandLine; 16 class CommandLine;
17 } 17 }
18 18
19 namespace content { 19 namespace content {
20 class BrowserContext; 20 class BrowserContext;
21 } 21 }
22 22
23 namespace extensions { 23 namespace extensions {
24 24
25 class ChromeExtensionsAPIClient; 25 class ChromeExtensionsAPIClient;
26 class ContentSettingsPrefsObserver;
26 27
27 // Implementation of extensions::BrowserClient for Chrome, which includes 28 // Implementation of extensions::BrowserClient for Chrome, which includes
28 // knowledge of Profiles, BrowserContexts and incognito. 29 // knowledge of Profiles, BrowserContexts and incognito.
29 // 30 //
30 // NOTE: Methods that do not require knowledge of browser concepts should be 31 // NOTE: Methods that do not require knowledge of browser concepts should be
31 // implemented in ChromeExtensionsClient even if they are only used in the 32 // implemented in ChromeExtensionsClient even if they are only used in the
32 // browser process (see chrome/common/extensions/chrome_extensions_client.h). 33 // browser process (see chrome/common/extensions/chrome_extensions_client.h).
33 class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient { 34 class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient {
34 public: 35 public:
35 ChromeExtensionsBrowserClient(); 36 ChromeExtensionsBrowserClient();
(...skipping 29 matching lines...) Expand all
65 OVERRIDE; 66 OVERRIDE;
66 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; 67 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE;
67 virtual void PermitExternalProtocolHandler() OVERRIDE; 68 virtual void PermitExternalProtocolHandler() OVERRIDE;
68 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; 69 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE;
69 virtual bool IsRunningInForcedAppMode() OVERRIDE; 70 virtual bool IsRunningInForcedAppMode() OVERRIDE;
70 virtual ApiActivityMonitor* GetApiActivityMonitor( 71 virtual ApiActivityMonitor* GetApiActivityMonitor(
71 content::BrowserContext* context) OVERRIDE; 72 content::BrowserContext* context) OVERRIDE;
72 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE; 73 virtual ExtensionSystemProvider* GetExtensionSystemFactory() OVERRIDE;
73 virtual void RegisterExtensionFunctions( 74 virtual void RegisterExtensionFunctions(
74 ExtensionFunctionRegistry* registry) const OVERRIDE; 75 ExtensionFunctionRegistry* registry) const OVERRIDE;
76 virtual void AddExtensionPrefsObservers(content::BrowserContext* context,
77 ExtensionPrefs* prefs) const OVERRIDE;
75 78
76 private: 79 private:
77 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; 80 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>;
78 81
79 // Observer for Chrome-specific notifications. 82 // Observer for Chrome-specific notifications.
80 ChromeNotificationObserver notification_observer_; 83 ChromeNotificationObserver notification_observer_;
81 84
82 #if defined(ENABLE_EXTENSIONS) 85 #if defined(ENABLE_EXTENSIONS)
83 // Client for API implementations. 86 // Client for API implementations.
84 scoped_ptr<ChromeExtensionsAPIClient> api_client_; 87 scoped_ptr<ChromeExtensionsAPIClient> api_client_;
85 #endif 88 #endif
86 89
87 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); 90 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient);
88 }; 91 };
89 92
90 } // namespace extensions 93 } // namespace extensions
91 94
92 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 95 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698