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 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "base/android/jni_weak_ref.h" | 28 #include "base/android/jni_weak_ref.h" |
29 #include "base/android/scoped_java_ref.h" | 29 #include "base/android/scoped_java_ref.h" |
30 #include "base/callback_forward.h" | 30 #include "base/callback_forward.h" |
31 #include "base/macros.h" | 31 #include "base/macros.h" |
32 #include "content/public/browser/render_process_host_observer.h" | 32 #include "content/public/browser/render_process_host_observer.h" |
33 #include "content/public/browser/web_contents_observer.h" | 33 #include "content/public/browser/web_contents_observer.h" |
34 | 34 |
35 class SkBitmap; | 35 class SkBitmap; |
36 class TabContents; | 36 class TabContents; |
37 | 37 |
| 38 namespace autofill { |
| 39 class AutofillProvider; |
| 40 } |
| 41 |
38 namespace content { | 42 namespace content { |
39 class WebContents; | 43 class WebContents; |
40 } | 44 } |
41 | 45 |
42 namespace android_webview { | 46 namespace android_webview { |
43 | 47 |
44 class AwContentsContainer; | 48 class AwContentsContainer; |
45 class AwContentsClientBridge; | 49 class AwContentsClientBridge; |
46 class AwGLFunctor; | 50 class AwGLFunctor; |
47 class AwPdfExporter; | 51 class AwPdfExporter; |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 BrowserViewRenderer browser_view_renderer_; // Must outlive |web_contents_|. | 403 BrowserViewRenderer browser_view_renderer_; // Must outlive |web_contents_|. |
400 std::unique_ptr<content::WebContents> web_contents_; | 404 std::unique_ptr<content::WebContents> web_contents_; |
401 std::unique_ptr<AwWebContentsDelegate> web_contents_delegate_; | 405 std::unique_ptr<AwWebContentsDelegate> web_contents_delegate_; |
402 std::unique_ptr<AwContentsClientBridge> contents_client_bridge_; | 406 std::unique_ptr<AwContentsClientBridge> contents_client_bridge_; |
403 std::unique_ptr<AwRenderViewHostExt> render_view_host_ext_; | 407 std::unique_ptr<AwRenderViewHostExt> render_view_host_ext_; |
404 std::unique_ptr<FindHelper> find_helper_; | 408 std::unique_ptr<FindHelper> find_helper_; |
405 std::unique_ptr<IconHelper> icon_helper_; | 409 std::unique_ptr<IconHelper> icon_helper_; |
406 std::unique_ptr<AwContents> pending_contents_; | 410 std::unique_ptr<AwContents> pending_contents_; |
407 std::unique_ptr<AwPdfExporter> pdf_exporter_; | 411 std::unique_ptr<AwPdfExporter> pdf_exporter_; |
408 std::unique_ptr<PermissionRequestHandler> permission_request_handler_; | 412 std::unique_ptr<PermissionRequestHandler> permission_request_handler_; |
| 413 std::unique_ptr<autofill::AutofillProvider> autofill_provider_; |
409 | 414 |
410 // GURL is supplied by the content layer as requesting frame. | 415 // GURL is supplied by the content layer as requesting frame. |
411 // Callback is supplied by the content layer, and is invoked with the result | 416 // Callback is supplied by the content layer, and is invoked with the result |
412 // from the permission prompt. | 417 // from the permission prompt. |
413 typedef std::pair<const GURL, base::Callback<void(bool)>> OriginCallback; | 418 typedef std::pair<const GURL, base::Callback<void(bool)>> OriginCallback; |
414 // The first element in the list is always the currently pending request. | 419 // The first element in the list is always the currently pending request. |
415 std::list<OriginCallback> pending_geolocation_prompts_; | 420 std::list<OriginCallback> pending_geolocation_prompts_; |
416 | 421 |
417 GLViewRendererManager::Key renderer_manager_key_; | 422 GLViewRendererManager::Key renderer_manager_key_; |
418 | 423 |
419 AwRendererPriorityManager::RendererPriority renderer_requested_priority_; | 424 AwRendererPriorityManager::RendererPriority renderer_requested_priority_; |
420 bool renderer_priority_waived_when_not_visible_; | 425 bool renderer_priority_waived_when_not_visible_; |
421 | 426 |
422 DISALLOW_COPY_AND_ASSIGN(AwContents); | 427 DISALLOW_COPY_AND_ASSIGN(AwContents); |
423 }; | 428 }; |
424 | 429 |
425 bool RegisterAwContents(JNIEnv* env); | 430 bool RegisterAwContents(JNIEnv* env); |
426 | 431 |
427 } // namespace android_webview | 432 } // namespace android_webview |
428 | 433 |
429 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 434 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |