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 17 matching lines...) Expand all Loading... |
28 virtual ~ChromeExtensionsBrowserClient(); | 28 virtual ~ChromeExtensionsBrowserClient(); |
29 | 29 |
30 // BrowserClient overrides: | 30 // BrowserClient overrides: |
31 virtual bool IsShuttingDown() OVERRIDE; | 31 virtual bool IsShuttingDown() OVERRIDE; |
32 virtual bool IsSameContext(content::BrowserContext* first, | 32 virtual bool IsSameContext(content::BrowserContext* first, |
33 content::BrowserContext* second) OVERRIDE; | 33 content::BrowserContext* second) OVERRIDE; |
34 virtual bool HasOffTheRecordContext( | 34 virtual bool HasOffTheRecordContext( |
35 content::BrowserContext* context) OVERRIDE; | 35 content::BrowserContext* context) OVERRIDE; |
36 virtual content::BrowserContext* GetOffTheRecordContext( | 36 virtual content::BrowserContext* GetOffTheRecordContext( |
37 content::BrowserContext* context) OVERRIDE; | 37 content::BrowserContext* context) OVERRIDE; |
| 38 virtual content::BrowserContext* GetOriginalContext( |
| 39 content::BrowserContext* context) OVERRIDE; |
| 40 virtual bool DeferLoadingBackgroundHosts( |
| 41 content::BrowserContext* context) const OVERRIDE; |
38 | 42 |
39 // Get the LazyInstance for ChromeBrowserClient. | 43 // Get the LazyInstance for ChromeBrowserClient. |
40 static ChromeExtensionsBrowserClient* GetInstance(); | 44 static ChromeExtensionsBrowserClient* GetInstance(); |
41 | 45 |
42 private: | 46 private: |
43 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 47 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
44 | 48 |
45 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 49 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
46 }; | 50 }; |
47 | 51 |
48 } // namespace extensions | 52 } // namespace extensions |
49 | 53 |
50 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 54 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |