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_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_TAB_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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 const gfx::RectF& active_rect) override; | 61 const gfx::RectF& active_rect) override; |
62 content::JavaScriptDialogManager* GetJavaScriptDialogManager( | 62 content::JavaScriptDialogManager* GetJavaScriptDialogManager( |
63 content::WebContents* source) override; | 63 content::WebContents* source) override; |
64 void RequestMediaAccessPermission( | 64 void RequestMediaAccessPermission( |
65 content::WebContents* web_contents, | 65 content::WebContents* web_contents, |
66 const content::MediaStreamRequest& request, | 66 const content::MediaStreamRequest& request, |
67 const content::MediaResponseCallback& callback) override; | 67 const content::MediaResponseCallback& callback) override; |
68 bool CheckMediaAccessPermission(content::WebContents* web_contents, | 68 bool CheckMediaAccessPermission(content::WebContents* web_contents, |
69 const GURL& security_origin, | 69 const GURL& security_origin, |
70 content::MediaStreamType type) override; | 70 content::MediaStreamType type) override; |
| 71 void RequestMediaDecodePermission( |
| 72 content::WebContents* web_contents, |
| 73 const base::Callback<void(bool)>& callback) override; |
71 bool RequestPpapiBrokerPermission( | 74 bool RequestPpapiBrokerPermission( |
72 content::WebContents* web_contents, | 75 content::WebContents* web_contents, |
73 const GURL& url, | 76 const GURL& url, |
74 const base::FilePath& plugin_path, | 77 const base::FilePath& plugin_path, |
75 const base::Callback<void(bool)>& callback) override; | 78 const base::Callback<void(bool)>& callback) override; |
76 content::WebContents* OpenURLFromTab( | 79 content::WebContents* OpenURLFromTab( |
77 content::WebContents* source, | 80 content::WebContents* source, |
78 const content::OpenURLParams& params) override; | 81 const content::OpenURLParams& params) override; |
79 bool ShouldResumeRequestsForCreatedWindow() override; | 82 bool ShouldResumeRequestsForCreatedWindow() override; |
80 void AddNewContents(content::WebContents* source, | 83 void AddNewContents(content::WebContents* source, |
(...skipping 15 matching lines...) Expand all Loading... |
96 content::NotificationRegistrar notification_registrar_; | 99 content::NotificationRegistrar notification_registrar_; |
97 }; | 100 }; |
98 | 101 |
99 // Register the native methods through JNI. | 102 // Register the native methods through JNI. |
100 bool RegisterTabWebContentsDelegateAndroid(JNIEnv* env); | 103 bool RegisterTabWebContentsDelegateAndroid(JNIEnv* env); |
101 | 104 |
102 } // namespace android | 105 } // namespace android |
103 } // namespace chrome | 106 } // namespace chrome |
104 | 107 |
105 #endif // CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 108 #endif // CHROME_BROWSER_ANDROID_TAB_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
OLD | NEW |