| 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 private: | 247 private: |
| 248 void InitAutofillIfNecessary(bool enabled); | 248 void InitAutofillIfNecessary(bool enabled); |
| 249 | 249 |
| 250 // Geolocation API support | 250 // Geolocation API support |
| 251 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); | 251 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); |
| 252 void HideGeolocationPrompt(const GURL& origin); | 252 void HideGeolocationPrompt(const GURL& origin); |
| 253 | 253 |
| 254 void SetDipScaleInternal(float dip_scale); | 254 void SetDipScaleInternal(float dip_scale); |
| 255 | 255 |
| 256 JavaObjectWeakGlobalRef java_ref_; | 256 JavaObjectWeakGlobalRef java_ref_; |
| 257 BrowserViewRenderer browser_view_renderer_; // Must outlive |web_contents_|. |
| 257 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; | 258 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; |
| 258 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; | 259 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; |
| 259 scoped_ptr<content::WebContents> web_contents_; | 260 scoped_ptr<content::WebContents> web_contents_; |
| 260 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; | 261 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; |
| 261 scoped_ptr<FindHelper> find_helper_; | 262 scoped_ptr<FindHelper> find_helper_; |
| 262 scoped_ptr<IconHelper> icon_helper_; | 263 scoped_ptr<IconHelper> icon_helper_; |
| 263 scoped_ptr<AwContents> pending_contents_; | 264 scoped_ptr<AwContents> pending_contents_; |
| 264 BrowserViewRenderer browser_view_renderer_; | |
| 265 scoped_ptr<AwPdfExporter> pdf_exporter_; | 265 scoped_ptr<AwPdfExporter> pdf_exporter_; |
| 266 scoped_ptr<PermissionRequestHandler> permission_request_handler_; | 266 scoped_ptr<PermissionRequestHandler> permission_request_handler_; |
| 267 scoped_refptr<AwMessagePortMessageFilter> message_port_message_filter_; | 267 scoped_refptr<AwMessagePortMessageFilter> message_port_message_filter_; |
| 268 | 268 |
| 269 // GURL is supplied by the content layer as requesting frame. | 269 // GURL is supplied by the content layer as requesting frame. |
| 270 // Callback is supplied by the content layer, and is invoked with the result | 270 // Callback is supplied by the content layer, and is invoked with the result |
| 271 // from the permission prompt. | 271 // from the permission prompt. |
| 272 typedef std::pair<const GURL, base::Callback<void(bool)> > OriginCallback; | 272 typedef std::pair<const GURL, base::Callback<void(bool)> > OriginCallback; |
| 273 // The first element in the list is always the currently pending request. | 273 // The first element in the list is always the currently pending request. |
| 274 std::list<OriginCallback> pending_geolocation_prompts_; | 274 std::list<OriginCallback> pending_geolocation_prompts_; |
| 275 | 275 |
| 276 GLViewRendererManager::Key renderer_manager_key_; | 276 GLViewRendererManager::Key renderer_manager_key_; |
| 277 | 277 |
| 278 DISALLOW_COPY_AND_ASSIGN(AwContents); | 278 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 279 }; | 279 }; |
| 280 | 280 |
| 281 bool RegisterAwContents(JNIEnv* env); | 281 bool RegisterAwContents(JNIEnv* env); |
| 282 | 282 |
| 283 } // namespace android_webview | 283 } // namespace android_webview |
| 284 | 284 |
| 285 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 285 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |