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

Unified Diff: chrome/browser/ui/media_utils.h

Issue 562263002: Check media permissions through RenderFrameHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_get_sources
Patch Set: Rebase Created 6 years, 3 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/media_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/media_utils.h
diff --git a/chrome/browser/ui/media_utils.h b/chrome/browser/ui/media_utils.h
index 8da821b1807ed4fdf5127f25b4c5d3f19a9dd3e5..5db46e6ffb3c96f0e84617e9301d099e1dec39d4 100644
--- a/chrome/browser/ui/media_utils.h
+++ b/chrome/browser/ui/media_utils.h
@@ -5,8 +5,10 @@
#ifndef CHROME_BROWSER_UI_MEDIA_UTILS_H_
#define CHROME_BROWSER_UI_MEDIA_UTILS_H_
+#include "base/callback.h"
#include "content/public/common/media_stream_request.h"
+class GURL;
class Profile;
namespace content {
@@ -19,4 +21,8 @@ void RequestMediaAccessPermission(
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback);
+bool CheckMediaAccessPermission(content::WebContents* web_contents,
+ const GURL& security_origin,
+ content::MediaStreamType type);
+
#endif // CHROME_BROWSER_UI_MEDIA_UTILS_H_
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/media_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698