Index: extensions/browser/guest_view/app_view/app_view_guest_delegate.h |
diff --git a/extensions/browser/guest_view/app_view/app_view_guest_delegate.h b/extensions/browser/guest_view/app_view/app_view_guest_delegate.h |
index 080c10ec261edbd1321bc849390381a6afac707b..693bacc1e01303ae9397aaa37ff7af8c3b257b4b 100644 |
--- a/extensions/browser/guest_view/app_view/app_view_guest_delegate.h |
+++ b/extensions/browser/guest_view/app_view/app_view_guest_delegate.h |
@@ -11,6 +11,8 @@ class WebContents; |
} |
namespace extensions { |
+class AppDelegate; |
+ |
// Interface to handle communication between AppView (in extensions) with the |
// browser. |
class AppViewGuestDelegate { |
@@ -21,6 +23,11 @@ class AppViewGuestDelegate { |
// Returns true if the context menu was handled. |
virtual bool HandleContextMenu(content::WebContents* web_contents, |
const content::ContextMenuParams& params) = 0; |
+ |
+ // Returns an AppDelegate to be used by the AppViewGuest. The AppDelegate is |
+ // used by AppView as an interface so that apps can use services in the |
Yoyo Zhou
2014/12/19 23:47:26
nit: I don't know what "as an interface" is suppos
lfg
2014/12/22 16:34:58
Done.
|
+ // browser. |
+ virtual AppDelegate* CreateAppDelegate() = 0; |
}; |
} // namespace extensions |