| 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" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual bool IsSameContext(content::BrowserContext* first, | 35 virtual bool IsSameContext(content::BrowserContext* first, |
| 36 content::BrowserContext* second) OVERRIDE; | 36 content::BrowserContext* second) OVERRIDE; |
| 37 virtual bool HasOffTheRecordContext( | 37 virtual bool HasOffTheRecordContext( |
| 38 content::BrowserContext* context) OVERRIDE; | 38 content::BrowserContext* context) OVERRIDE; |
| 39 virtual content::BrowserContext* GetOffTheRecordContext( | 39 virtual content::BrowserContext* GetOffTheRecordContext( |
| 40 content::BrowserContext* context) OVERRIDE; | 40 content::BrowserContext* context) OVERRIDE; |
| 41 virtual content::BrowserContext* GetOriginalContext( | 41 virtual content::BrowserContext* GetOriginalContext( |
| 42 content::BrowserContext* context) OVERRIDE; | 42 content::BrowserContext* context) OVERRIDE; |
| 43 virtual bool DeferLoadingBackgroundHosts( | 43 virtual bool DeferLoadingBackgroundHosts( |
| 44 content::BrowserContext* context) const OVERRIDE; | 44 content::BrowserContext* context) const OVERRIDE; |
| 45 virtual bool DidVersionUpdate(ExtensionPrefs* extension_prefs) OVERRIDE; | 45 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; |
| 46 | 46 |
| 47 // Get the LazyInstance for ChromeBrowserClient. | 47 // Get the LazyInstance for ChromeBrowserClient. |
| 48 static ChromeExtensionsBrowserClient* GetInstance(); | 48 static ChromeExtensionsBrowserClient* GetInstance(); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 51 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
| 52 | 52 |
| 53 // Observer for Chrome-specific notifications. | 53 // Observer for Chrome-specific notifications. |
| 54 ChromeNotificationObserver notification_observer_; | 54 ChromeNotificationObserver notification_observer_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 56 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace extensions | 59 } // namespace extensions |
| 60 | 60 |
| 61 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 61 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
| OLD | NEW |