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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 const GURL& security_origin, | 62 const GURL& security_origin, |
63 content::MediaStreamType type) override; | 63 content::MediaStreamType type) override; |
64 bool RequestPpapiBrokerPermission( | 64 bool RequestPpapiBrokerPermission( |
65 content::WebContents* web_contents, | 65 content::WebContents* web_contents, |
66 const GURL& url, | 66 const GURL& url, |
67 const base::FilePath& plugin_path, | 67 const base::FilePath& plugin_path, |
68 const base::Callback<void(bool)>& callback) override; | 68 const base::Callback<void(bool)>& callback) override; |
69 content::WebContents* OpenURLFromTab( | 69 content::WebContents* OpenURLFromTab( |
70 content::WebContents* source, | 70 content::WebContents* source, |
71 const content::OpenURLParams& params) override; | 71 const content::OpenURLParams& params) override; |
| 72 bool ShouldResumeRequestsForCreatedWindow() override; |
72 void AddNewContents(content::WebContents* source, | 73 void AddNewContents(content::WebContents* source, |
73 content::WebContents* new_contents, | 74 content::WebContents* new_contents, |
74 WindowOpenDisposition disposition, | 75 WindowOpenDisposition disposition, |
75 const gfx::Rect& initial_rect, | 76 const gfx::Rect& initial_rect, |
76 bool user_gesture, | 77 bool user_gesture, |
77 bool* was_blocked) override; | 78 bool* was_blocked) override; |
78 | 79 |
79 private: | 80 private: |
80 // NotificationObserver implementation. | 81 // NotificationObserver implementation. |
81 void Observe(int type, | 82 void Observe(int type, |
82 const content::NotificationSource& source, | 83 const content::NotificationSource& source, |
83 const content::NotificationDetails& details) override; | 84 const content::NotificationDetails& details) override; |
84 | 85 |
85 void OnFindResultAvailable(content::WebContents* web_contents, | 86 void OnFindResultAvailable(content::WebContents* web_contents, |
86 const FindNotificationDetails* find_result); | 87 const FindNotificationDetails* find_result); |
87 | 88 |
88 content::NotificationRegistrar notification_registrar_; | 89 content::NotificationRegistrar notification_registrar_; |
89 }; | 90 }; |
90 | 91 |
91 // Register the native methods through JNI. | 92 // Register the native methods through JNI. |
92 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); | 93 bool RegisterChromeWebContentsDelegateAndroid(JNIEnv* env); |
93 | 94 |
94 } // namespace android | 95 } // namespace android |
95 } // namespace chrome | 96 } // namespace chrome |
96 | 97 |
97 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ | 98 #endif // CHROME_BROWSER_ANDROID_CHROME_WEB_CONTENTS_DELEGATE_ANDROID_H_ |
OLD | NEW |