OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "android_webview/native/aw_contents.h" | 5 #include "android_webview/native/aw_contents.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "android_webview/browser/aw_browser_context.h" | 10 #include "android_webview/browser/aw_browser_context.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include "base/memory/memory_pressure_listener.h" | 49 #include "base/memory/memory_pressure_listener.h" |
50 #include "base/memory/ptr_util.h" | 50 #include "base/memory/ptr_util.h" |
51 #include "base/pickle.h" | 51 #include "base/pickle.h" |
52 #include "base/single_thread_task_runner.h" | 52 #include "base/single_thread_task_runner.h" |
53 #include "base/strings/string16.h" | 53 #include "base/strings/string16.h" |
54 #include "base/supports_user_data.h" | 54 #include "base/supports_user_data.h" |
55 #include "base/threading/thread_task_runner_handle.h" | 55 #include "base/threading/thread_task_runner_handle.h" |
56 #include "components/autofill/content/browser/content_autofill_driver_factory.h" | 56 #include "components/autofill/content/browser/content_autofill_driver_factory.h" |
57 #include "components/autofill/core/browser/autofill_manager.h" | 57 #include "components/autofill/core/browser/autofill_manager.h" |
58 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 58 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
59 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett
ings.h" | |
60 #include "components/navigation_interception/intercept_navigation_delegate.h" | 59 #include "components/navigation_interception/intercept_navigation_delegate.h" |
61 #include "content/public/browser/android/content_view_core.h" | 60 #include "content/public/browser/android/content_view_core.h" |
62 #include "content/public/browser/android/synchronous_compositor.h" | 61 #include "content/public/browser/android/synchronous_compositor.h" |
63 #include "content/public/browser/browser_thread.h" | 62 #include "content/public/browser/browser_thread.h" |
64 #include "content/public/browser/cert_store.h" | 63 #include "content/public/browser/cert_store.h" |
65 #include "content/public/browser/child_process_security_policy.h" | 64 #include "content/public/browser/child_process_security_policy.h" |
66 #include "content/public/browser/favicon_status.h" | 65 #include "content/public/browser/favicon_status.h" |
67 #include "content/public/browser/message_port_provider.h" | 66 #include "content/public/browser/message_port_provider.h" |
68 #include "content/public/browser/navigation_entry.h" | 67 #include "content/public/browser/navigation_entry.h" |
69 #include "content/public/browser/render_frame_host.h" | 68 #include "content/public/browser/render_frame_host.h" |
(...skipping 17 matching lines...) Expand all Loading... |
87 using autofill::ContentAutofillDriverFactory; | 86 using autofill::ContentAutofillDriverFactory; |
88 using autofill::AutofillManager; | 87 using autofill::AutofillManager; |
89 using base::android::AttachCurrentThread; | 88 using base::android::AttachCurrentThread; |
90 using base::android::ConvertJavaStringToUTF16; | 89 using base::android::ConvertJavaStringToUTF16; |
91 using base::android::ConvertJavaStringToUTF8; | 90 using base::android::ConvertJavaStringToUTF8; |
92 using base::android::ConvertUTF16ToJavaString; | 91 using base::android::ConvertUTF16ToJavaString; |
93 using base::android::ConvertUTF8ToJavaString; | 92 using base::android::ConvertUTF8ToJavaString; |
94 using base::android::JavaRef; | 93 using base::android::JavaRef; |
95 using base::android::ScopedJavaGlobalRef; | 94 using base::android::ScopedJavaGlobalRef; |
96 using base::android::ScopedJavaLocalRef; | 95 using base::android::ScopedJavaLocalRef; |
97 using data_reduction_proxy::DataReductionProxySettings; | |
98 using navigation_interception::InterceptNavigationDelegate; | 96 using navigation_interception::InterceptNavigationDelegate; |
99 using content::BrowserThread; | 97 using content::BrowserThread; |
100 using content::ContentViewCore; | 98 using content::ContentViewCore; |
101 using content::WebContents; | 99 using content::WebContents; |
102 | 100 |
103 namespace android_webview { | 101 namespace android_webview { |
104 | 102 |
105 namespace { | 103 namespace { |
106 | 104 |
107 bool g_should_download_favicons = false; | 105 bool g_should_download_favicons = false; |
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 int routing_id = new_host->GetRoutingID(); | 1304 int routing_id = new_host->GetRoutingID(); |
1307 // At this point, the current RVH may or may not contain a compositor. So | 1305 // At this point, the current RVH may or may not contain a compositor. So |
1308 // compositor_ may be nullptr, in which case | 1306 // compositor_ may be nullptr, in which case |
1309 // BrowserViewRenderer::DidInitializeCompositor() callback is time when the | 1307 // BrowserViewRenderer::DidInitializeCompositor() callback is time when the |
1310 // new compositor is constructed. | 1308 // new compositor is constructed. |
1311 browser_view_renderer_.SetActiveCompositorID( | 1309 browser_view_renderer_.SetActiveCompositorID( |
1312 CompositorID(process_id, routing_id)); | 1310 CompositorID(process_id, routing_id)); |
1313 } | 1311 } |
1314 | 1312 |
1315 } // namespace android_webview | 1313 } // namespace android_webview |
OLD | NEW |