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

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

Issue 2847743003: Eliminate InterfaceRegistry (Closed)
Patch Set: . Created 3 years, 7 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
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 197 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
198 #include "net/cookies/canonical_cookie.h" 198 #include "net/cookies/canonical_cookie.h"
199 #include "net/cookies/cookie_options.h" 199 #include "net/cookies/cookie_options.h"
200 #include "net/ssl/ssl_cert_request_info.h" 200 #include "net/ssl/ssl_cert_request_info.h"
201 #include "ppapi/features/features.h" 201 #include "ppapi/features/features.h"
202 #include "ppapi/host/ppapi_host.h" 202 #include "ppapi/host/ppapi_host.h"
203 #include "printing/features/features.h" 203 #include "printing/features/features.h"
204 #include "services/preferences/public/interfaces/preferences.mojom.h" 204 #include "services/preferences/public/interfaces/preferences.mojom.h"
205 #include "services/service_manager/public/cpp/binder_registry.h" 205 #include "services/service_manager/public/cpp/binder_registry.h"
206 #include "services/service_manager/public/cpp/interface_provider.h" 206 #include "services/service_manager/public/cpp/interface_provider.h"
207 #include "services/service_manager/public/cpp/interface_registry.h"
208 #include "services/service_manager/public/cpp/service.h" 207 #include "services/service_manager/public/cpp/service.h"
209 #include "storage/browser/fileapi/external_mount_points.h" 208 #include "storage/browser/fileapi/external_mount_points.h"
210 #include "third_party/WebKit/public/platform/modules/installedapp/installed_app_ provider.mojom.h" 209 #include "third_party/WebKit/public/platform/modules/installedapp/installed_app_ provider.mojom.h"
211 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h" 210 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h"
212 #include "ui/base/l10n/l10n_util.h" 211 #include "ui/base/l10n/l10n_util.h"
213 #include "ui/base/resource/resource_bundle.h" 212 #include "ui/base/resource/resource_bundle.h"
214 #include "ui/resources/grit/ui_resources.h" 213 #include "ui/resources/grit/ui_resources.h"
215 #include "url/gurl.h" 214 #include "url/gurl.h"
216 #include "url/origin.h" 215 #include "url/origin.h"
217 216
(...skipping 2914 matching lines...) Expand 10 before | Expand all | Expand 10 after
3132 #endif 3131 #endif
3133 3132
3134 #if defined(OS_CHROMEOS) 3133 #if defined(OS_CHROMEOS)
3135 registry->AddInterface<metrics::mojom::LeakDetector>( 3134 registry->AddInterface<metrics::mojom::LeakDetector>(
3136 base::Bind(&metrics::LeakDetectorRemoteController::Create), 3135 base::Bind(&metrics::LeakDetectorRemoteController::Create),
3137 ui_task_runner); 3136 ui_task_runner);
3138 #endif 3137 #endif
3139 } 3138 }
3140 3139
3141 void ChromeContentBrowserClient::ExposeInterfacesToMediaService( 3140 void ChromeContentBrowserClient::ExposeInterfacesToMediaService(
3142 service_manager::InterfaceRegistry* registry, 3141 service_manager::BinderRegistry* registry,
3143 content::RenderFrameHost* render_frame_host) { 3142 content::RenderFrameHost* render_frame_host) {
3144 // TODO(xhwang): Only register this when ENABLE_MOJO_MEDIA. 3143 // TODO(xhwang): Only register this when ENABLE_MOJO_MEDIA.
3145 #if defined(OS_CHROMEOS) 3144 #if defined(OS_CHROMEOS)
3146 registry->AddInterface( 3145 registry->AddInterface(
3147 base::Bind(&chromeos::attestation::PlatformVerificationImpl::Create, 3146 base::Bind(&chromeos::attestation::PlatformVerificationImpl::Create,
3148 render_frame_host)); 3147 render_frame_host));
3149 #endif // defined(OS_CHROMEOS) 3148 #endif // defined(OS_CHROMEOS)
3150 3149
3151 #if defined(ENABLE_MOJO_MEDIA) 3150 #if defined(ENABLE_MOJO_MEDIA)
3152 registry->AddInterface( 3151 registry->AddInterface(
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
3615 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3614 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3616 return variations::GetVariationParamValue( 3615 return variations::GetVariationParamValue(
3617 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3616 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3618 } 3617 }
3619 3618
3620 // static 3619 // static
3621 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3620 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3622 const storage::QuotaSettings* settings) { 3621 const storage::QuotaSettings* settings) {
3623 g_default_quota_settings = settings; 3622 g_default_quota_settings = settings;
3624 } 3623 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698