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

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

Issue 56253002: Move ExtensionsProcessManager to src/extensions, part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years, 1 month 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 "extensions/browser/extensions_browser_client.h" 12 #include "extensions/browser/extensions_browser_client.h"
12 13
13 namespace content { 14 namespace content {
14 class BrowserContext; 15 class BrowserContext;
15 } 16 }
16 17
17 namespace extensions { 18 namespace extensions {
18 19
20 class ChromeNotificationObserver;
21
19 // Implementation of extensions::BrowserClient for Chrome, which includes 22 // Implementation of extensions::BrowserClient for Chrome, which includes
20 // knowledge of Profiles, BrowserContexts and incognito. 23 // knowledge of Profiles, BrowserContexts and incognito.
21 // 24 //
22 // NOTE: Methods that do not require knowledge of browser concepts should be 25 // NOTE: Methods that do not require knowledge of browser concepts should be
23 // implemented in ChromeExtensionsClient even if they are only used in the 26 // implemented in ChromeExtensionsClient even if they are only used in the
24 // browser process (see chrome/common/extensions/chrome_extensions_client.h). 27 // browser process (see chrome/common/extensions/chrome_extensions_client.h).
25 class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient { 28 class ChromeExtensionsBrowserClient : public ExtensionsBrowserClient {
26 public: 29 public:
27 ChromeExtensionsBrowserClient(); 30 ChromeExtensionsBrowserClient();
28 virtual ~ChromeExtensionsBrowserClient(); 31 virtual ~ChromeExtensionsBrowserClient();
(...skipping 10 matching lines...) Expand all
39 content::BrowserContext* context) OVERRIDE; 42 content::BrowserContext* context) OVERRIDE;
40 virtual bool DeferLoadingBackgroundHosts( 43 virtual bool DeferLoadingBackgroundHosts(
41 content::BrowserContext* context) const OVERRIDE; 44 content::BrowserContext* context) const OVERRIDE;
42 45
43 // Get the LazyInstance for ChromeBrowserClient. 46 // Get the LazyInstance for ChromeBrowserClient.
44 static ChromeExtensionsBrowserClient* GetInstance(); 47 static ChromeExtensionsBrowserClient* GetInstance();
45 48
46 private: 49 private:
47 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; 50 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>;
48 51
52 // Observer for Chrome-specific notifications.
53 scoped_ptr<ChromeNotificationObserver> notification_observer_;
Yoyo Zhou 2013/11/01 22:54:06 Can this be a regular member variable?
James Cook 2013/11/04 19:06:19 Done.
54
49 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); 55 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient);
50 }; 56 };
51 57
52 } // namespace extensions 58 } // namespace extensions
53 59
54 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ 60 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698