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