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

Unified Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 10542092: Refactor the content interface for RequestMediaAccessPermission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 8 years, 6 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: content/browser/renderer_host/render_view_host_delegate.h
diff --git a/content/browser/renderer_host/render_view_host_delegate.h b/content/browser/renderer_host/render_view_host_delegate.h
index a8d7e6b64641f6e95fa6d6bedb9c396c1593d920..e26363e37b8b68d44aa6bd5dbb2e11688c4323e1 100644
--- a/content/browser/renderer_host/render_view_host_delegate.h
+++ b/content/browser/renderer_host/render_view_host_delegate.h
@@ -14,6 +14,7 @@
#include "base/string16.h"
#include "content/common/content_export.h"
#include "content/public/common/javascript_message_type.h"
+#include "content/public/common/media_stream_request.h"
#include "ipc/ipc_channel.h"
#include "net/base/load_states.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
@@ -390,6 +391,13 @@ class CONTENT_EXPORT RenderViewHostDelegate : public IPC::Channel::Listener {
// provided in the supplied params.
virtual void ShowContextMenu(const content::ContextMenuParams& params) {}
+ // The render view host has requested access to media devices listed in
Evan Stade 2012/06/09 05:47:38 s/render view host/render view/
+ // |request|, and the client should grant or deny that permission by
+ // calling |callback|.
+ virtual void RequestMediaAccessPermission(
+ const content::MediaStreamRequest* request,
jam 2012/06/11 05:31:57 nit: here and below, no "content::" since this is
Evan Stade 2012/06/12 00:00:46 Done.
+ const content::MediaResponseCallback& callback) {}
+
protected:
virtual ~RenderViewHostDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698