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

Unified Diff: extensions/browser/api/extensions_api_client.h

Issue 496873006: Move core web_view code to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/extensions_api_client.h
diff --git a/extensions/browser/api/extensions_api_client.h b/extensions/browser/api/extensions_api_client.h
index 93fae579b7c6b75d206283715654266a3627d0e6..a8e6aa7c42990ee86d8f8c3eeb60c047db2118f6 100644
--- a/extensions/browser/api/extensions_api_client.h
+++ b/extensions/browser/api/extensions_api_client.h
@@ -26,6 +26,10 @@ class HidService;
namespace extensions {
class AppViewGuestDelegate;
+class WebViewGuest;
+class WebViewGuestDelegate;
+class WebViewPermissionHelper;
+class WebViewPermissionHelperDelegate;
class SettingsObserver;
class SettingsStorageFactory;
class ValueStoreCache;
@@ -75,6 +79,17 @@ class ExtensionsAPIClient {
// Returns the HidService instance for this embedder.
virtual device::HidService* GetHidService();
+ // Returns a delegate for some of WebViewGuest's behavior. The caller owns the
+ // return WebViewGuestDelegate.
+ virtual WebViewGuestDelegate* CreateWebViewGuestDelegate(
+ WebViewGuest* web_view_guest);
+
+ // Returns a delegate for some of WebViewPermissionHelper's behavior. The
+ // caller owns the returned WebViewPermissionHelperDelegate.
+ virtual WebViewPermissionHelperDelegate*
+ CreateWebViewPermissionHelperDelegate(
+ WebViewPermissionHelper* web_view_permission_helper);
+
virtual void RegisterGuestViewTypes() {}
// NOTE: If this interface gains too many methods (perhaps more than 20) it

Powered by Google App Engine
This is Rietveld 408576698