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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual content::BrowserContext* GetOffTheRecordContext( | 43 virtual content::BrowserContext* GetOffTheRecordContext( |
44 content::BrowserContext* context) OVERRIDE; | 44 content::BrowserContext* context) OVERRIDE; |
45 virtual content::BrowserContext* GetOriginalContext( | 45 virtual content::BrowserContext* GetOriginalContext( |
46 content::BrowserContext* context) OVERRIDE; | 46 content::BrowserContext* context) OVERRIDE; |
47 virtual PrefService* GetPrefServiceForContext( | 47 virtual PrefService* GetPrefServiceForContext( |
48 content::BrowserContext* context) OVERRIDE; | 48 content::BrowserContext* context) OVERRIDE; |
49 virtual bool DeferLoadingBackgroundHosts( | 49 virtual bool DeferLoadingBackgroundHosts( |
50 content::BrowserContext* context) const OVERRIDE; | 50 content::BrowserContext* context) const OVERRIDE; |
51 virtual bool IsBackgroundPageAllowed( | 51 virtual bool IsBackgroundPageAllowed( |
52 content::BrowserContext* context) const OVERRIDE; | 52 content::BrowserContext* context) const OVERRIDE; |
| 53 virtual void OnExtensionHostCreated(content::WebContents* web_contents) |
| 54 OVERRIDE; |
53 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; | 55 virtual bool DidVersionUpdate(content::BrowserContext* context) OVERRIDE; |
54 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; | 56 virtual scoped_ptr<AppSorting> CreateAppSorting() OVERRIDE; |
55 virtual bool IsRunningInForcedAppMode() OVERRIDE; | 57 virtual bool IsRunningInForcedAppMode() OVERRIDE; |
56 virtual content::JavaScriptDialogManager* GetJavaScriptDialogManager() | 58 virtual content::JavaScriptDialogManager* GetJavaScriptDialogManager() |
57 OVERRIDE; | 59 OVERRIDE; |
58 | 60 |
59 private: | 61 private: |
60 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 62 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
61 | 63 |
62 // Observer for Chrome-specific notifications. | 64 // Observer for Chrome-specific notifications. |
63 ChromeNotificationObserver notification_observer_; | 65 ChromeNotificationObserver notification_observer_; |
64 | 66 |
65 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 67 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
66 }; | 68 }; |
67 | 69 |
68 } // namespace extensions | 70 } // namespace extensions |
69 | 71 |
70 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 72 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |