| OLD | NEW |
| 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" |
| 12 #include "chrome/browser/extensions/chrome_notification_observer.h" |
| 11 #include "extensions/browser/extensions_browser_client.h" | 13 #include "extensions/browser/extensions_browser_client.h" |
| 12 | 14 |
| 13 namespace content { | 15 namespace content { |
| 14 class BrowserContext; | 16 class BrowserContext; |
| 15 } | 17 } |
| 16 | 18 |
| 17 namespace extensions { | 19 namespace extensions { |
| 18 | 20 |
| 19 // Implementation of extensions::BrowserClient for Chrome, which includes | 21 // Implementation of extensions::BrowserClient for Chrome, which includes |
| 20 // knowledge of Profiles, BrowserContexts and incognito. | 22 // knowledge of Profiles, BrowserContexts and incognito. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 content::BrowserContext* context) OVERRIDE; | 41 content::BrowserContext* context) OVERRIDE; |
| 40 virtual bool DeferLoadingBackgroundHosts( | 42 virtual bool DeferLoadingBackgroundHosts( |
| 41 content::BrowserContext* context) const OVERRIDE; | 43 content::BrowserContext* context) const OVERRIDE; |
| 42 | 44 |
| 43 // Get the LazyInstance for ChromeBrowserClient. | 45 // Get the LazyInstance for ChromeBrowserClient. |
| 44 static ChromeExtensionsBrowserClient* GetInstance(); | 46 static ChromeExtensionsBrowserClient* GetInstance(); |
| 45 | 47 |
| 46 private: | 48 private: |
| 47 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 49 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
| 48 | 50 |
| 51 // Observer for Chrome-specific notifications. |
| 52 ChromeNotificationObserver notification_observer_; |
| 53 |
| 49 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 54 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
| 50 }; | 55 }; |
| 51 | 56 |
| 52 } // namespace extensions | 57 } // namespace extensions |
| 53 | 58 |
| 54 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 59 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |