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

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

Issue 2518243002: Revert of [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 13 matching lines...) Expand all
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"
35 #include "components/cdm/browser/cdm_message_filter_android.h" 34 #include "components/cdm/browser/cdm_message_filter_android.h"
36 #include "components/crash/content/browser/crash_micro_dump_manager_android.h" 35 #include "components/crash/content/browser/crash_micro_dump_manager_android.h"
37 #include "components/navigation_interception/intercept_navigation_delegate.h" 36 #include "components/navigation_interception/intercept_navigation_delegate.h"
38 #include "content/public/browser/browser_message_filter.h" 37 #include "content/public/browser/browser_message_filter.h"
39 #include "content/public/browser/browser_thread.h" 38 #include "content/public/browser/browser_thread.h"
40 #include "content/public/browser/child_process_security_policy.h" 39 #include "content/public/browser/child_process_security_policy.h"
41 #include "content/public/browser/client_certificate_delegate.h" 40 #include "content/public/browser/client_certificate_delegate.h"
42 #include "content/public/browser/navigation_handle.h" 41 #include "content/public/browser/navigation_handle.h"
43 #include "content/public/browser/navigation_throttle.h" 42 #include "content/public/browser/navigation_throttle.h"
44 #include "content/public/browser/render_frame_host.h" 43 #include "content/public/browser/render_frame_host.h"
45 #include "content/public/browser/render_process_host.h" 44 #include "content/public/browser/render_process_host.h"
46 #include "content/public/browser/render_view_host.h" 45 #include "content/public/browser/render_view_host.h"
47 #include "content/public/browser/web_contents.h" 46 #include "content/public/browser/web_contents.h"
48 #include "content/public/common/content_switches.h" 47 #include "content/public/common/content_switches.h"
49 #include "content/public/common/url_constants.h" 48 #include "content/public/common/url_constants.h"
50 #include "content/public/common/web_preferences.h" 49 #include "content/public/common/web_preferences.h"
51 #include "device/geolocation/access_token_store.h" 50 #include "device/geolocation/access_token_store.h"
52 #include "device/geolocation/geolocation_delegate.h" 51 #include "device/geolocation/geolocation_delegate.h"
53 #include "net/android/network_library.h" 52 #include "net/android/network_library.h"
54 #include "net/ssl/ssl_cert_request_info.h" 53 #include "net/ssl/ssl_cert_request_info.h"
55 #include "net/ssl/ssl_info.h" 54 #include "net/ssl/ssl_info.h"
56 #include "services/service_manager/public/cpp/interface_registry.h"
57 #include "ui/base/resource/resource_bundle.h" 55 #include "ui/base/resource/resource_bundle.h"
58 #include "ui/base/resource/resource_bundle_android.h" 56 #include "ui/base/resource/resource_bundle_android.h"
59 #include "ui/resources/grit/ui_resources.h" 57 #include "ui/resources/grit/ui_resources.h"
60 58
61 #if defined(ENABLE_SPELLCHECK) 59 #if defined(ENABLE_SPELLCHECK)
62 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h" 60 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h"
63 #include "components/spellcheck/common/spellcheck_switches.h" 61 #include "components/spellcheck/common/spellcheck_switches.h"
64 #endif 62 #endif
65 63
66 using content::BrowserThread; 64 using content::BrowserThread;
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 navigation_handle)); 524 navigation_handle));
527 } 525 }
528 return throttles; 526 return throttles;
529 } 527 }
530 528
531 content::DevToolsManagerDelegate* 529 content::DevToolsManagerDelegate*
532 AwContentBrowserClient::GetDevToolsManagerDelegate() { 530 AwContentBrowserClient::GetDevToolsManagerDelegate() {
533 return new AwDevToolsManagerDelegate(); 531 return new AwDevToolsManagerDelegate();
534 } 532 }
535 533
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
544 } // namespace android_webview 534 } // 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