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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "content/public/browser/web_contents.h" | 53 #include "content/public/browser/web_contents.h" |
54 #include "content/public/common/content_switches.h" | 54 #include "content/public/common/content_switches.h" |
55 #include "content/public/common/service_names.mojom.h" | 55 #include "content/public/common/service_names.mojom.h" |
56 #include "content/public/common/url_constants.h" | 56 #include "content/public/common/url_constants.h" |
57 #include "content/public/common/web_preferences.h" | 57 #include "content/public/common/web_preferences.h" |
58 #include "device/geolocation/access_token_store.h" | 58 #include "device/geolocation/access_token_store.h" |
59 #include "device/geolocation/geolocation_delegate.h" | 59 #include "device/geolocation/geolocation_delegate.h" |
60 #include "net/android/network_library.h" | 60 #include "net/android/network_library.h" |
61 #include "net/ssl/ssl_cert_request_info.h" | 61 #include "net/ssl/ssl_cert_request_info.h" |
62 #include "net/ssl/ssl_info.h" | 62 #include "net/ssl/ssl_info.h" |
63 #include "services/service_manager/public/cpp/interface_registry.h" | 63 #include "services/service_manager/public/cpp/binder_registry.h" |
64 #include "storage/browser/quota/quota_settings.h" | 64 #include "storage/browser/quota/quota_settings.h" |
65 #include "ui/base/resource/resource_bundle.h" | 65 #include "ui/base/resource/resource_bundle.h" |
66 #include "ui/base/resource/resource_bundle_android.h" | 66 #include "ui/base/resource/resource_bundle_android.h" |
67 #include "ui/resources/grit/ui_resources.h" | 67 #include "ui/resources/grit/ui_resources.h" |
68 | 68 |
69 #if BUILDFLAG(ENABLE_SPELLCHECK) | 69 #if BUILDFLAG(ENABLE_SPELLCHECK) |
70 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h" | 70 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h" |
71 #include "components/spellcheck/common/spellcheck_switches.h" | 71 #include "components/spellcheck/common/spellcheck_switches.h" |
72 #endif | 72 #endif |
73 | 73 |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 id = IDR_AW_RENDERER_MANIFEST_OVERLAY; | 544 id = IDR_AW_RENDERER_MANIFEST_OVERLAY; |
545 if (id == -1) | 545 if (id == -1) |
546 return nullptr; | 546 return nullptr; |
547 | 547 |
548 base::StringPiece manifest_contents = | 548 base::StringPiece manifest_contents = |
549 ui::ResourceBundle::GetSharedInstance().GetRawDataResourceForScale( | 549 ui::ResourceBundle::GetSharedInstance().GetRawDataResourceForScale( |
550 id, ui::ScaleFactor::SCALE_FACTOR_NONE); | 550 id, ui::ScaleFactor::SCALE_FACTOR_NONE); |
551 return base::JSONReader::Read(manifest_contents); | 551 return base::JSONReader::Read(manifest_contents); |
552 } | 552 } |
553 | 553 |
554 void AwContentBrowserClient::RegisterRenderFrameMojoInterfaces( | 554 void AwContentBrowserClient::ExposeInterfacesToFrame( |
555 service_manager::InterfaceRegistry* registry, | 555 service_manager::BinderRegistry* registry, |
556 content::RenderFrameHost* render_frame_host) { | 556 content::RenderFrameHost* render_frame_host) { |
557 registry->AddInterface( | 557 registry->AddInterface( |
558 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, | 558 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver, |
559 render_frame_host)); | 559 render_frame_host)); |
560 | 560 |
561 // Although WebView does not support password manager feature, renderer code | 561 // Although WebView does not support password manager feature, renderer code |
562 // could still request this interface, so we register a dummy binder which | 562 // could still request this interface, so we register a dummy binder which |
563 // just drops the incoming request, to avoid the 'Failed to locate a binder | 563 // just drops the incoming request, to avoid the 'Failed to locate a binder |
564 // for interface' error log.. | 564 // for interface' error log.. |
565 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver)); | 565 registry->AddInterface(base::Bind(&DummyBindPasswordManagerDriver)); |
566 } | 566 } |
567 | 567 |
568 } // namespace android_webview | 568 } // namespace android_webview |
OLD | NEW |