Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1955)

Side by Side Diff: extensions/browser/extensions_browser_client.h

Issue 1181263007: WebView context menu cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 virtual bool IsMinBrowserVersionSupported(const std::string& min_version) = 0; 215 virtual bool IsMinBrowserVersionSupported(const std::string& min_version) = 0;
216 216
217 // Embedders can override this function to handle extension errors. 217 // Embedders can override this function to handle extension errors.
218 virtual void ReportError(content::BrowserContext* context, 218 virtual void ReportError(content::BrowserContext* context,
219 scoped_ptr<ExtensionError> error); 219 scoped_ptr<ExtensionError> error);
220 220
221 // Returns the ExtensionWebContentsObserver for the given |web_contents|. 221 // Returns the ExtensionWebContentsObserver for the given |web_contents|.
222 virtual ExtensionWebContentsObserver* GetExtensionWebContentsObserver( 222 virtual ExtensionWebContentsObserver* GetExtensionWebContentsObserver(
223 content::WebContents* web_contents) = 0; 223 content::WebContents* web_contents) = 0;
224 224
225 // Cleans up browser-side state associated with a WebView that is being
226 // destroyed.
227 virtual void CleanUpWebView(int embedder_process_id, int view_instance_id) {}
228
225 // Returns the single instance of |this|. 229 // Returns the single instance of |this|.
226 static ExtensionsBrowserClient* Get(); 230 static ExtensionsBrowserClient* Get();
227 231
228 // Initialize the single instance. 232 // Initialize the single instance.
229 static void Set(ExtensionsBrowserClient* client); 233 static void Set(ExtensionsBrowserClient* client);
230 }; 234 };
231 235
232 } // namespace extensions 236 } // namespace extensions
233 237
234 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_ 238 #endif // EXTENSIONS_BROWSER_EXTENSIONS_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698