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 EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // Indicates whether an extension update which specifies its minimum browser | 210 // Indicates whether an extension update which specifies its minimum browser |
211 // version as |min_version| can be installed by the client. Not all extensions | 211 // version as |min_version| can be installed by the client. Not all extensions |
212 // embedders share the same versioning model, so interpretation of the string | 212 // embedders share the same versioning model, so interpretation of the string |
213 // is left up to the embedder. | 213 // is left up to the embedder. |
214 virtual bool IsMinBrowserVersionSupported(const std::string& min_version) = 0; | 214 virtual bool IsMinBrowserVersionSupported(const std::string& min_version) = 0; |
215 | 215 |
216 // Returns the ExtensionWebContentsObserver for the given |web_contents|. | 216 // Returns the ExtensionWebContentsObserver for the given |web_contents|. |
217 virtual ExtensionWebContentsObserver* GetExtensionWebContentsObserver( | 217 virtual ExtensionWebContentsObserver* GetExtensionWebContentsObserver( |
218 content::WebContents* web_contents) = 0; | 218 content::WebContents* web_contents) = 0; |
219 | 219 |
| 220 // Cleans up browser-side state associated with a WebView that is being |
| 221 // destroyed. |
| 222 virtual void CleanUpWebView(int embedder_process_id, int view_instance_id) {} |
| 223 |
220 // Returns the single instance of |this|. | 224 // Returns the single instance of |this|. |
221 static ExtensionsBrowserClient* Get(); | 225 static ExtensionsBrowserClient* Get(); |
222 | 226 |
223 // Initialize the single instance. | 227 // Initialize the single instance. |
224 static void Set(ExtensionsBrowserClient* client); | 228 static void Set(ExtensionsBrowserClient* client); |
225 }; | 229 }; |
226 | 230 |
227 } // namespace extensions | 231 } // namespace extensions |
228 | 232 |
229 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ | 233 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ |
OLD | NEW |