OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/renderer/aw_content_renderer_client.h" | 5 #include "android_webview/renderer/aw_content_renderer_client.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "android_webview/common/aw_switches.h" | 9 #include "android_webview/common/aw_switches.h" |
10 #include "android_webview/common/render_view_messages.h" | 10 #include "android_webview/common/render_view_messages.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "components/autofill/content/renderer/autofill_agent.h" | 26 #include "components/autofill/content/renderer/autofill_agent.h" |
27 #include "components/autofill/content/renderer/password_autofill_agent.h" | 27 #include "components/autofill/content/renderer/password_autofill_agent.h" |
28 #include "components/printing/renderer/print_web_view_helper.h" | 28 #include "components/printing/renderer/print_web_view_helper.h" |
29 #include "components/safe_browsing/renderer/websocket_sb_handshake_throttle.h" | 29 #include "components/safe_browsing/renderer/websocket_sb_handshake_throttle.h" |
30 #include "components/spellcheck/spellcheck_build_features.h" | 30 #include "components/spellcheck/spellcheck_build_features.h" |
31 #include "components/supervised_user_error_page/gin_wrapper.h" | 31 #include "components/supervised_user_error_page/gin_wrapper.h" |
32 #include "components/supervised_user_error_page/supervised_user_error_page_andro
id.h" | 32 #include "components/supervised_user_error_page/supervised_user_error_page_andro
id.h" |
33 #include "components/visitedlink/renderer/visitedlink_slave.h" | 33 #include "components/visitedlink/renderer/visitedlink_slave.h" |
34 #include "components/web_restrictions/interfaces/web_restrictions.mojom.h" | 34 #include "components/web_restrictions/interfaces/web_restrictions.mojom.h" |
35 #include "content/public/child/child_thread.h" | 35 #include "content/public/child/child_thread.h" |
36 #include "content/public/common/content_switches.h" | 36 #include "content/public/common/content_features.h" |
37 #include "content/public/common/service_manager_connection.h" | 37 #include "content/public/common/service_manager_connection.h" |
38 #include "content/public/common/service_names.mojom.h" | 38 #include "content/public/common/service_names.mojom.h" |
39 #include "content/public/common/simple_connection_filter.h" | 39 #include "content/public/common/simple_connection_filter.h" |
40 #include "content/public/common/url_constants.h" | 40 #include "content/public/common/url_constants.h" |
41 #include "content/public/renderer/document_state.h" | 41 #include "content/public/renderer/document_state.h" |
42 #include "content/public/renderer/navigation_state.h" | 42 #include "content/public/renderer/navigation_state.h" |
43 #include "content/public/renderer/render_frame.h" | 43 #include "content/public/renderer/render_frame.h" |
44 #include "content/public/renderer/render_thread.h" | 44 #include "content/public/renderer/render_thread.h" |
45 #include "content/public/renderer/render_view.h" | 45 #include "content/public/renderer/render_view.h" |
46 #include "net/base/escape.h" | 46 #include "net/base/escape.h" |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 base::CompareCase::INSENSITIVE_ASCII)) { | 328 base::CompareCase::INSENSITIVE_ASCII)) { |
329 return true; | 329 return true; |
330 } | 330 } |
331 } | 331 } |
332 return false; | 332 return false; |
333 } | 333 } |
334 | 334 |
335 bool AwContentRendererClient::UsingSafeBrowsingMojoService() { | 335 bool AwContentRendererClient::UsingSafeBrowsingMojoService() { |
336 if (safe_browsing_) | 336 if (safe_browsing_) |
337 return true; | 337 return true; |
338 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( | 338 if (!base::FeatureList::IsEnabled(features::kNetworkService)) |
339 switches::kEnableNetworkService)) { | |
340 return false; | 339 return false; |
341 } | |
342 RenderThread::Get()->GetConnector()->BindInterface( | 340 RenderThread::Get()->GetConnector()->BindInterface( |
343 content::mojom::kBrowserServiceName, &safe_browsing_); | 341 content::mojom::kBrowserServiceName, &safe_browsing_); |
344 return true; | 342 return true; |
345 } | 343 } |
346 | 344 |
347 } // namespace android_webview | 345 } // namespace android_webview |
OLD | NEW |