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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1283703003: Change ownership of BackgroundSyncServiceImpl to BackgroundSyncContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fixes Created 5 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
OLDNEW
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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 base::Bind(&device::BatteryMonitorImpl::Create)); 947 base::Bind(&device::BatteryMonitorImpl::Create));
948 948
949 mojo_application_host_->service_registry()->AddService( 949 mojo_application_host_->service_registry()->AddService(
950 base::Bind(&device::VibrationManagerImpl::Create)); 950 base::Bind(&device::VibrationManagerImpl::Create));
951 951
952 mojo_application_host_->service_registry()->AddService( 952 mojo_application_host_->service_registry()->AddService(
953 base::Bind(&PermissionServiceContext::CreateService, 953 base::Bind(&PermissionServiceContext::CreateService,
954 base::Unretained(permission_service_context_.get()))); 954 base::Unretained(permission_service_context_.get())));
955 955
956 mojo_application_host_->service_registry()->AddService(base::Bind( 956 mojo_application_host_->service_registry()->AddService(base::Bind(
957 &content::BackgroundSyncServiceImpl::Create, 957 &BackgroundSyncContextImpl::CreateService,
958 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 958 make_scoped_refptr(storage_partition_impl_->GetBackgroundSyncContext())));
959 959
960 mojo_application_host_->service_registry()->AddService(base::Bind( 960 mojo_application_host_->service_registry()->AddService(base::Bind(
961 &content::ServicePortServiceImpl::Create, 961 &content::ServicePortServiceImpl::Create,
962 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()), 962 make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()),
963 message_port_message_filter_)); 963 message_port_message_filter_));
964 964
965 #if defined(OS_ANDROID) 965 #if defined(OS_ANDROID)
966 ServiceRegistrarAndroid::RegisterProcessHostServices( 966 ServiceRegistrarAndroid::RegisterProcessHostServices(
967 mojo_application_host_->service_registry_android()); 967 mojo_application_host_->service_registry_android());
968 #endif 968 #endif
(...skipping 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
2518 void RenderProcessHostImpl::GetAudioOutputControllers( 2518 void RenderProcessHostImpl::GetAudioOutputControllers(
2519 const GetAudioOutputControllersCallback& callback) const { 2519 const GetAudioOutputControllersCallback& callback) const {
2520 audio_renderer_host()->GetOutputControllers(callback); 2520 audio_renderer_host()->GetOutputControllers(callback);
2521 } 2521 }
2522 2522
2523 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2523 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2524 return bluetooth_dispatcher_host_.get(); 2524 return bluetooth_dispatcher_host_.get();
2525 } 2525 }
2526 2526
2527 } // namespace content 2527 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698