OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |