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

Unified Diff: extensions/browser/guest_view/app_view/app_view_guest_delegate.h

Issue 820583002: Adds support for media permission request handling on <appview> tag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/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

Powered by Google App Engine
This is Rietveld 408576698