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

Side by Side Diff: chrome/browser/android/chrome_web_contents_delegate_android.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual void FindMatchRectsReply(content::WebContents* web_contents, 52 virtual void FindMatchRectsReply(content::WebContents* web_contents,
53 int version, 53 int version,
54 const std::vector<gfx::RectF>& rects, 54 const std::vector<gfx::RectF>& rects,
55 const gfx::RectF& active_rect) OVERRIDE; 55 const gfx::RectF& active_rect) OVERRIDE;
56 virtual content::JavaScriptDialogManager* 56 virtual content::JavaScriptDialogManager*
57 GetJavaScriptDialogManager() OVERRIDE; 57 GetJavaScriptDialogManager() OVERRIDE;
58 virtual void RequestMediaAccessPermission( 58 virtual void RequestMediaAccessPermission(
59 content::WebContents* web_contents, 59 content::WebContents* web_contents,
60 const content::MediaStreamRequest& request, 60 const content::MediaStreamRequest& request,
61 const content::MediaResponseCallback& callback) OVERRIDE; 61 const content::MediaResponseCallback& callback) OVERRIDE;
62 virtual bool CheckMediaAccessPermission(
63 content::WebContents* web_contents,
64 const GURL& security_origin,
65 content::MediaStreamType type) OVERRIDE;
62 virtual bool RequestPpapiBrokerPermission( 66 virtual bool RequestPpapiBrokerPermission(
63 content::WebContents* web_contents, 67 content::WebContents* web_contents,
64 const GURL& url, 68 const GURL& url,
65 const base::FilePath& plugin_path, 69 const base::FilePath& plugin_path,
66 const base::Callback<void(bool)>& callback) OVERRIDE; 70 const base::Callback<void(bool)>& callback) OVERRIDE;
67 virtual content::WebContents* OpenURLFromTab( 71 virtual content::WebContents* OpenURLFromTab(
68 content::WebContents* source, 72 content::WebContents* source,
69 const content::OpenURLParams& params) OVERRIDE; 73 const content::OpenURLParams& params) OVERRIDE;
70 virtual void AddNewContents(content::WebContents* source, 74 virtual void AddNewContents(content::WebContents* source,
71 content::WebContents* new_contents, 75 content::WebContents* new_contents,
(...skipping 18 matching lines...) Expand all
90 content::NotificationRegistrar notification_registrar_; 94 content::NotificationRegistrar notification_registrar_;
91 }; 95 };
92 96
93 // Register the native methods through JNI. 97 // Register the native methods through JNI.
94 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); 98 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env);
95 99
96 } // namespace android 100 } // namespace android
97 } // namespace chrome 101 } // namespace chrome
98 102
99 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ 103 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_
OLDNEW
« no previous file with comments | « athena/extensions/chrome/athena_app_delegate.cc ('k') | chrome/browser/android/chrome_web_contents_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698