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