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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2177123003: Move SearchProvider implementation into Blink and make it a no-op. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 months 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/external_extension_browsertest.cc » ('j') | 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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" 65 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h"
66 #include "chrome/browser/profiles/profile.h" 66 #include "chrome/browser/profiles/profile.h"
67 #include "chrome/browser/profiles/profile_io_data.h" 67 #include "chrome/browser/profiles/profile_io_data.h"
68 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" 68 #include "chrome/browser/renderer_host/chrome_render_message_filter.h"
69 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory .h" 69 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory .h"
70 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 70 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
71 #include "chrome/browser/safe_browsing/ui_manager.h" 71 #include "chrome/browser/safe_browsing/ui_manager.h"
72 #include "chrome/browser/search/instant_service.h" 72 #include "chrome/browser/search/instant_service.h"
73 #include "chrome/browser/search/instant_service_factory.h" 73 #include "chrome/browser/search/instant_service_factory.h"
74 #include "chrome/browser/search/search.h" 74 #include "chrome/browser/search/search.h"
75 #include "chrome/browser/search_engines/search_provider_install_state_impl.h"
76 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" 75 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h"
77 #include "chrome/browser/speech/tts_controller.h" 76 #include "chrome/browser/speech/tts_controller.h"
78 #include "chrome/browser/speech/tts_message_filter.h" 77 #include "chrome/browser/speech/tts_message_filter.h"
79 #include "chrome/browser/ssl/ssl_add_certificate.h" 78 #include "chrome/browser/ssl/ssl_add_certificate.h"
80 #include "chrome/browser/ssl/ssl_blocking_page.h" 79 #include "chrome/browser/ssl/ssl_blocking_page.h"
81 #include "chrome/browser/ssl/ssl_cert_reporter.h" 80 #include "chrome/browser/ssl/ssl_cert_reporter.h"
82 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" 81 #include "chrome/browser/ssl/ssl_client_certificate_selector.h"
83 #include "chrome/browser/ssl/ssl_error_handler.h" 82 #include "chrome/browser/ssl/ssl_error_handler.h"
84 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" 83 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h"
85 #include "chrome/browser/tab_contents/tab_util.h" 84 #include "chrome/browser/tab_contents/tab_util.h"
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 net::URLRequestContextGetter* context = 957 net::URLRequestContextGetter* context =
959 host->GetStoragePartition()->GetURLRequestContext(); 958 host->GetStoragePartition()->GetURLRequestContext();
960 959
961 host->AddFilter(new ChromeRenderMessageFilter(id, profile)); 960 host->AddFilter(new ChromeRenderMessageFilter(id, profile));
962 #if defined(ENABLE_EXTENSIONS) 961 #if defined(ENABLE_EXTENSIONS)
963 host->AddFilter(new cast::CastTransportHostFilter); 962 host->AddFilter(new cast::CastTransportHostFilter);
964 #endif 963 #endif
965 #if defined(ENABLE_PRINTING) 964 #if defined(ENABLE_PRINTING)
966 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); 965 host->AddFilter(new printing::PrintingMessageFilter(id, profile));
967 #endif 966 #endif
968 host->GetInterfaceRegistry()->AddInterface(
969 base::Bind(&SearchProviderInstallStateImpl::Create, id, profile),
970 content::BrowserThread::GetTaskRunnerForThread(
971 content::BrowserThread::UI));
972 #if defined(ENABLE_SPELLCHECK) 967 #if defined(ENABLE_SPELLCHECK)
973 host->AddFilter(new SpellCheckMessageFilter(id)); 968 host->AddFilter(new SpellCheckMessageFilter(id));
974 #endif 969 #endif
975 #if defined(USE_BROWSER_SPELLCHECKER) 970 #if defined(USE_BROWSER_SPELLCHECKER)
976 host->AddFilter(new SpellCheckMessageFilterPlatform(id)); 971 host->AddFilter(new SpellCheckMessageFilterPlatform(id));
977 #endif 972 #endif
978 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); 973 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context));
979 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); 974 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile));
980 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); 975 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext()));
981 #if defined(ENABLE_WEBRTC) 976 #if defined(ENABLE_WEBRTC)
(...skipping 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after
3052 if (channel <= kMaxDisableEncryptionChannel) { 3047 if (channel <= kMaxDisableEncryptionChannel) {
3053 static const char* const kWebRtcDevSwitchNames[] = { 3048 static const char* const kWebRtcDevSwitchNames[] = {
3054 switches::kDisableWebRtcEncryption, 3049 switches::kDisableWebRtcEncryption,
3055 }; 3050 };
3056 to_command_line->CopySwitchesFrom(from_command_line, 3051 to_command_line->CopySwitchesFrom(from_command_line,
3057 kWebRtcDevSwitchNames, 3052 kWebRtcDevSwitchNames,
3058 arraysize(kWebRtcDevSwitchNames)); 3053 arraysize(kWebRtcDevSwitchNames));
3059 } 3054 }
3060 } 3055 }
3061 #endif // defined(ENABLE_WEBRTC) 3056 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/external_extension_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698