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

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

Issue 2491103003: [Autofill]Enable mojo AutofillDriver for android_webview. (Closed)
Patch Set: Created 4 years, 1 month 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 "content/public/browser/browser_message_filter.h" 40 #include "content/public/browser/browser_message_filter.h"
40 #include "content/public/browser/browser_thread.h" 41 #include "content/public/browser/browser_thread.h"
41 #include "content/public/browser/child_process_security_policy.h" 42 #include "content/public/browser/child_process_security_policy.h"
42 #include "content/public/browser/client_certificate_delegate.h" 43 #include "content/public/browser/client_certificate_delegate.h"
43 #include "content/public/browser/navigation_handle.h" 44 #include "content/public/browser/navigation_handle.h"
44 #include "content/public/browser/navigation_throttle.h" 45 #include "content/public/browser/navigation_throttle.h"
45 #include "content/public/browser/render_frame_host.h" 46 #include "content/public/browser/render_frame_host.h"
46 #include "content/public/browser/render_process_host.h" 47 #include "content/public/browser/render_process_host.h"
47 #include "content/public/browser/render_view_host.h" 48 #include "content/public/browser/render_view_host.h"
48 #include "content/public/browser/web_contents.h" 49 #include "content/public/browser/web_contents.h"
49 #include "content/public/common/content_switches.h" 50 #include "content/public/common/content_switches.h"
50 #include "content/public/common/service_names.h" 51 #include "content/public/common/service_names.h"
51 #include "content/public/common/url_constants.h" 52 #include "content/public/common/url_constants.h"
52 #include "content/public/common/web_preferences.h" 53 #include "content/public/common/web_preferences.h"
53 #include "device/geolocation/access_token_store.h" 54 #include "device/geolocation/access_token_store.h"
54 #include "device/geolocation/geolocation_delegate.h" 55 #include "device/geolocation/geolocation_delegate.h"
55 #include "net/android/network_library.h" 56 #include "net/android/network_library.h"
56 #include "net/ssl/ssl_cert_request_info.h" 57 #include "net/ssl/ssl_cert_request_info.h"
57 #include "net/ssl/ssl_info.h" 58 #include "net/ssl/ssl_info.h"
59 #include "services/service_manager/public/cpp/interface_registry.h"
58 #include "ui/base/resource/resource_bundle.h" 60 #include "ui/base/resource/resource_bundle.h"
59 #include "ui/base/resource/resource_bundle_android.h" 61 #include "ui/base/resource/resource_bundle_android.h"
60 #include "ui/resources/grit/ui_resources.h" 62 #include "ui/resources/grit/ui_resources.h"
61 63
62 #if defined(ENABLE_SPELLCHECK) 64 #if defined(ENABLE_SPELLCHECK)
63 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h" 65 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h"
64 #include "components/spellcheck/common/spellcheck_switches.h" 66 #include "components/spellcheck/common/spellcheck_switches.h"
65 #endif 67 #endif
66 68
67 using content::BrowserThread; 69 using content::BrowserThread;
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 id = IDR_AW_BROWSER_MANIFEST_OVERLAY; 534 id = IDR_AW_BROWSER_MANIFEST_OVERLAY;
533 if (id == -1) 535 if (id == -1)
534 return nullptr; 536 return nullptr;
535 537
536 base::StringPiece manifest_contents = 538 base::StringPiece manifest_contents =
537 ui::ResourceBundle::GetSharedInstance().GetRawDataResourceForScale( 539 ui::ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(
538 id, ui::ScaleFactor::SCALE_FACTOR_NONE); 540 id, ui::ScaleFactor::SCALE_FACTOR_NONE);
539 return base::JSONReader::Read(manifest_contents); 541 return base::JSONReader::Read(manifest_contents);
540 } 542 }
541 543
544 void AwContentBrowserClient::RegisterRenderFrameMojoInterfaces(
545 service_manager::InterfaceRegistry* registry,
546 content::RenderFrameHost* render_frame_host) {
547 registry->AddInterface(
548 base::Bind(&autofill::ContentAutofillDriverFactory::BindAutofillDriver,
vabr (Chromium) 2016/11/11 09:07:42 When you bind this, does it mean that the browser-
sgurun-gerrit only 2016/11/18 23:51:28 yes it works the same way as chrome. Specifically,
leonhsl(Using Gerrit) 2016/11/19 12:05:31 Thanks sgurun@ a lot for the clarifications. As fo
549 render_frame_host));
550 }
551
542 } // namespace android_webview 552 } // 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