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 <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 ExtensionCache* GetExtensionCache() override; | 101 ExtensionCache* GetExtensionCache() override; |
102 bool IsBackgroundUpdateAllowed() override; | 102 bool IsBackgroundUpdateAllowed() override; |
103 bool IsMinBrowserVersionSupported(const std::string& min_version) override; | 103 bool IsMinBrowserVersionSupported(const std::string& min_version) override; |
104 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( | 104 ExtensionWebContentsObserver* GetExtensionWebContentsObserver( |
105 content::WebContents* web_contents) override; | 105 content::WebContents* web_contents) override; |
106 void ReportError(content::BrowserContext* context, | 106 void ReportError(content::BrowserContext* context, |
107 scoped_ptr<ExtensionError> error) override; | 107 scoped_ptr<ExtensionError> error) override; |
108 void CleanUpWebView(content::BrowserContext* browser_context, | 108 void CleanUpWebView(content::BrowserContext* browser_context, |
109 int embedder_process_id, | 109 int embedder_process_id, |
110 int view_instance_id) override; | 110 int view_instance_id) override; |
| 111 void AttachExtensionTaskManagerTag(content::WebContents* web_contents, |
| 112 ViewType view_type) override; |
111 | 113 |
112 private: | 114 private: |
113 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; | 115 friend struct base::DefaultLazyInstanceTraits<ChromeExtensionsBrowserClient>; |
114 | 116 |
115 // Observer for Chrome-specific notifications. | 117 // Observer for Chrome-specific notifications. |
116 ChromeNotificationObserver notification_observer_; | 118 ChromeNotificationObserver notification_observer_; |
117 | 119 |
118 // Support for ProcessManager. | 120 // Support for ProcessManager. |
119 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; | 121 scoped_ptr<ChromeProcessManagerDelegate> process_manager_delegate_; |
120 | 122 |
121 // Client for API implementations. | 123 // Client for API implementations. |
122 scoped_ptr<ChromeExtensionsAPIClient> api_client_; | 124 scoped_ptr<ChromeExtensionsAPIClient> api_client_; |
123 | 125 |
124 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; | 126 scoped_ptr<ChromeComponentExtensionResourceManager> resource_manager_; |
125 | 127 |
126 scoped_ptr<ExtensionCache> extension_cache_; | 128 scoped_ptr<ExtensionCache> extension_cache_; |
127 | 129 |
128 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); | 130 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsBrowserClient); |
129 }; | 131 }; |
130 | 132 |
131 } // namespace extensions | 133 } // namespace extensions |
132 | 134 |
133 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ | 135 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |