Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: android_webview/browser/aw_content_browser_client.cc

Issue 2538683002: [M56] [Autofill]Enable mojo AutofillDriver for android_webview. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 15 matching lines...) Expand all
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 "android_webview/grit/aw_resources.h" 28 #include "android_webview/grit/aw_resources.h"
29 #include "base/android/locale_utils.h" 29 #include "base/android/locale_utils.h"
30 #include "base/base_paths_android.h" 30 #include "base/base_paths_android.h"
31 #include "base/command_line.h" 31 #include "base/command_line.h"
32 #include "base/files/scoped_file.h" 32 #include "base/files/scoped_file.h"
33 #include "base/json/json_reader.h" 33 #include "base/json/json_reader.h"
34 #include "base/memory/ptr_util.h" 34 #include "base/memory/ptr_util.h"
35 #include "base/path_service.h" 35 #include "base/path_service.h"
36 #include "components/autofill/content/browser/content_autofill_driver_factory.h"
36 #include "components/cdm/browser/cdm_message_filter_android.h" 37 #include "components/cdm/browser/cdm_message_filter_android.h"
37 #include "components/crash/content/browser/crash_micro_dump_manager_android.h" 38 #include "components/crash/content/browser/crash_micro_dump_manager_android.h"
38 #include "components/navigation_interception/intercept_navigation_delegate.h" 39 #include "components/navigation_interception/intercept_navigation_delegate.h"
39 #include "components/spellcheck/spellcheck_build_features.h" 40 #include "components/spellcheck/spellcheck_build_features.h"
40 #include "content/public/browser/browser_message_filter.h" 41 #include "content/public/browser/browser_message_filter.h"
41 #include "content/public/browser/browser_thread.h" 42 #include "content/public/browser/browser_thread.h"
42 #include "content/public/browser/child_process_security_policy.h" 43 #include "content/public/browser/child_process_security_policy.h"
43 #include "content/public/browser/client_certificate_delegate.h" 44 #include "content/public/browser/client_certificate_delegate.h"
44 #include "content/public/browser/navigation_handle.h" 45 #include "content/public/browser/navigation_handle.h"
45 #include "content/public/browser/navigation_throttle.h" 46 #include "content/public/browser/navigation_throttle.h"
46 #include "content/public/browser/render_frame_host.h" 47 #include "content/public/browser/render_frame_host.h"
47 #include "content/public/browser/render_process_host.h" 48 #include "content/public/browser/render_process_host.h"
48 #include "content/public/browser/render_view_host.h" 49 #include "content/public/browser/render_view_host.h"
49 #include "content/public/browser/web_contents.h" 50 #include "content/public/browser/web_contents.h"
50 #include "content/public/common/content_switches.h" 51 #include "content/public/common/content_switches.h"
51 #include "content/public/common/service_names.mojom.h" 52 #include "content/public/common/service_names.mojom.h"
52 #include "content/public/common/url_constants.h" 53 #include "content/public/common/url_constants.h"
53 #include "content/public/common/web_preferences.h" 54 #include "content/public/common/web_preferences.h"
54 #include "device/geolocation/access_token_store.h" 55 #include "device/geolocation/access_token_store.h"
55 #include "device/geolocation/geolocation_delegate.h" 56 #include "device/geolocation/geolocation_delegate.h"
56 #include "net/android/network_library.h" 57 #include "net/android/network_library.h"
57 #include "net/ssl/ssl_cert_request_info.h" 58 #include "net/ssl/ssl_cert_request_info.h"
58 #include "net/ssl/ssl_info.h" 59 #include "net/ssl/ssl_info.h"
60 #include "services/service_manager/public/cpp/interface_registry.h"
59 #include "ui/base/resource/resource_bundle.h" 61 #include "ui/base/resource/resource_bundle.h"
60 #include "ui/base/resource/resource_bundle_android.h" 62 #include "ui/base/resource/resource_bundle_android.h"
61 #include "ui/resources/grit/ui_resources.h" 63 #include "ui/resources/grit/ui_resources.h"
62 64
63 #if BUILDFLAG(ENABLE_SPELLCHECK) 65 #if BUILDFLAG(ENABLE_SPELLCHECK)
64 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h" 66 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h"
65 #include "components/spellcheck/common/spellcheck_switches.h" 67 #include "components/spellcheck/common/spellcheck_switches.h"
66 #endif 68 #endif
67 69
68 using content::BrowserThread; 70 using content::BrowserThread;
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 id = IDR_AW_BROWSER_MANIFEST_OVERLAY; 536 id = IDR_AW_BROWSER_MANIFEST_OVERLAY;
535 if (id == -1) 537 if (id == -1)
536 return nullptr; 538 return nullptr;
537 539
538 base::StringPiece manifest_contents = 540 base::StringPiece manifest_contents =
539 ui::ResourceBundle::GetSharedInstance().GetRawDataResourceForScale( 541 ui::ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(
540 id, ui::ScaleFactor::SCALE_FACTOR_NONE); 542 id, ui::ScaleFactor::SCALE_FACTOR_NONE);
541 return base::JSONReader::Read(manifest_contents); 543 return base::JSONReader::Read(manifest_contents);
542 } 544 }
543 545
546 void AwContentBrowserClient::RegisterRenderFrameMojoInterfaces(
547 service_manager::InterfaceRegistry* registry,
548 content::RenderFrameHost* render_frame_host) {
549 registry->AddInterface(
550 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver,
551 render_frame_host));
552 }
553
544 } // namespace android_webview 554 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698