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

Unified Diff: chrome/browser/guestview/webview/webview_guest.h

Issue 235733002: <webview>: Move media request to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_geolocation_to_chrome
Patch Set: Updated UMA Created 6 years, 8 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: chrome/browser/guestview/webview/webview_guest.h
diff --git a/chrome/browser/guestview/webview/webview_guest.h b/chrome/browser/guestview/webview/webview_guest.h
index 82cce7625993f2a5907981cb01c690bf1b6bbe0a..221df605284909481fe28f2e4dd4560b70099688 100644
--- a/chrome/browser/guestview/webview/webview_guest.h
+++ b/chrome/browser/guestview/webview/webview_guest.h
@@ -81,6 +81,9 @@ class WebViewGuest : public GuestView,
virtual GURL ResolveURL(const std::string& src) OVERRIDE;
virtual void SizeChanged(const gfx::Size& old_size, const gfx::Size& new_size)
OVERRIDE;
+ virtual void RequestMediaAccessPermission(
+ const content::MediaStreamRequest& request,
+ const content::MediaResponseCallback& callback) OVERRIDE;
// NotificationObserver implementation.
virtual void Observe(int type,
@@ -123,6 +126,12 @@ class WebViewGuest : public GuestView,
void CancelGeolocationPermissionRequest(int bridge_id);
+ void OnWebViewMediaPermissionResponse(
+ const content::MediaStreamRequest& request,
+ const content::MediaResponseCallback& callback,
+ bool allow,
+ const std::string& user_input);
+
enum PermissionResponseAction {
DENY,
ALLOW,
« no previous file with comments | « no previous file | chrome/browser/guestview/webview/webview_guest.cc » ('j') | chrome/browser/guestview/webview/webview_guest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698