| 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 #include "android_webview/browser/aw_content_browser_client.h" | 5 #include "android_webview/browser/aw_content_browser_client.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "android_webview/browser/aw_browser_context.h" | 9 #include "android_webview/browser/aw_browser_context.h" |
| 10 #include "android_webview/browser/aw_browser_main_parts.h" | 10 #include "android_webview/browser/aw_browser_main_parts.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "android_webview/common/aw_descriptors.h" | 24 #include "android_webview/common/aw_descriptors.h" |
| 25 #include "android_webview/common/aw_switches.h" | 25 #include "android_webview/common/aw_switches.h" |
| 26 #include "android_webview/common/render_view_messages.h" | 26 #include "android_webview/common/render_view_messages.h" |
| 27 #include "android_webview/common/url_constants.h" | 27 #include "android_webview/common/url_constants.h" |
| 28 #include "base/android/locale_utils.h" | 28 #include "base/android/locale_utils.h" |
| 29 #include "base/base_paths_android.h" | 29 #include "base/base_paths_android.h" |
| 30 #include "base/command_line.h" | 30 #include "base/command_line.h" |
| 31 #include "base/files/scoped_file.h" | 31 #include "base/files/scoped_file.h" |
| 32 #include "base/memory/ptr_util.h" | 32 #include "base/memory/ptr_util.h" |
| 33 #include "base/path_service.h" | 33 #include "base/path_service.h" |
| 34 #include "components/autofill/content/browser/content_autofill_driver_factory.h" |
| 34 #include "components/cdm/browser/cdm_message_filter_android.h" | 35 #include "components/cdm/browser/cdm_message_filter_android.h" |
| 35 #include "components/crash/content/browser/crash_micro_dump_manager_android.h" | 36 #include "components/crash/content/browser/crash_micro_dump_manager_android.h" |
| 36 #include "components/navigation_interception/intercept_navigation_delegate.h" | 37 #include "components/navigation_interception/intercept_navigation_delegate.h" |
| 37 #include "content/public/browser/browser_message_filter.h" | 38 #include "content/public/browser/browser_message_filter.h" |
| 38 #include "content/public/browser/browser_thread.h" | 39 #include "content/public/browser/browser_thread.h" |
| 39 #include "content/public/browser/child_process_security_policy.h" | 40 #include "content/public/browser/child_process_security_policy.h" |
| 40 #include "content/public/browser/client_certificate_delegate.h" | 41 #include "content/public/browser/client_certificate_delegate.h" |
| 41 #include "content/public/browser/navigation_handle.h" | 42 #include "content/public/browser/navigation_handle.h" |
| 42 #include "content/public/browser/navigation_throttle.h" | 43 #include "content/public/browser/navigation_throttle.h" |
| 43 #include "content/public/browser/render_frame_host.h" | 44 #include "content/public/browser/render_frame_host.h" |
| 44 #include "content/public/browser/render_process_host.h" | 45 #include "content/public/browser/render_process_host.h" |
| 45 #include "content/public/browser/render_view_host.h" | 46 #include "content/public/browser/render_view_host.h" |
| 46 #include "content/public/browser/web_contents.h" | 47 #include "content/public/browser/web_contents.h" |
| 47 #include "content/public/common/content_switches.h" | 48 #include "content/public/common/content_switches.h" |
| 48 #include "content/public/common/url_constants.h" | 49 #include "content/public/common/url_constants.h" |
| 49 #include "content/public/common/web_preferences.h" | 50 #include "content/public/common/web_preferences.h" |
| 50 #include "device/geolocation/access_token_store.h" | 51 #include "device/geolocation/access_token_store.h" |
| 51 #include "device/geolocation/geolocation_delegate.h" | 52 #include "device/geolocation/geolocation_delegate.h" |
| 52 #include "net/android/network_library.h" | 53 #include "net/android/network_library.h" |
| 53 #include "net/ssl/ssl_cert_request_info.h" | 54 #include "net/ssl/ssl_cert_request_info.h" |
| 54 #include "net/ssl/ssl_info.h" | 55 #include "net/ssl/ssl_info.h" |
| 56 #include "services/service_manager/public/cpp/interface_registry.h" |
| 55 #include "ui/base/resource/resource_bundle.h" | 57 #include "ui/base/resource/resource_bundle.h" |
| 56 #include "ui/base/resource/resource_bundle_android.h" | 58 #include "ui/base/resource/resource_bundle_android.h" |
| 57 #include "ui/resources/grit/ui_resources.h" | 59 #include "ui/resources/grit/ui_resources.h" |
| 58 | 60 |
| 59 #if defined(ENABLE_SPELLCHECK) | 61 #if defined(ENABLE_SPELLCHECK) |
| 60 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h" | 62 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h" |
| 61 #include "components/spellcheck/common/spellcheck_switches.h" | 63 #include "components/spellcheck/common/spellcheck_switches.h" |
| 62 #endif | 64 #endif |
| 63 | 65 |
| 64 using content::BrowserThread; | 66 using content::BrowserThread; |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 navigation_handle)); | 526 navigation_handle)); |
| 525 } | 527 } |
| 526 return throttles; | 528 return throttles; |
| 527 } | 529 } |
| 528 | 530 |
| 529 content::DevToolsManagerDelegate* | 531 content::DevToolsManagerDelegate* |
| 530 AwContentBrowserClient::GetDevToolsManagerDelegate() { | 532 AwContentBrowserClient::GetDevToolsManagerDelegate() { |
| 531 return new AwDevToolsManagerDelegate(); | 533 return new AwDevToolsManagerDelegate(); |
| 532 } | 534 } |
| 533 | 535 |
| 536 void AwContentBrowserClient::RegisterRenderFrameMojoInterfaces( |
| 537 service_manager::InterfaceRegistry* registry, |
| 538 content::RenderFrameHost* render_frame_host) { |
| 539 registry->AddInterface( |
| 540 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, |
| 541 render_frame_host)); |
| 542 } |
| 543 |
| 534 } // namespace android_webview | 544 } // namespace android_webview |
| OLD | NEW |