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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2843353003: Move ownership of PowerSaveBlocker from WakeLockServiceContext to WakeLockServiceImpl (Closed)
Patch Set: correct some trivial #includes 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 3703 matching lines...) Expand 10 before | Expand all | Expand 10 after
3714 } 3714 }
3715 3715
3716 void RenderFrameHostImpl::OnMediaInterfaceFactoryConnectionError() { 3716 void RenderFrameHostImpl::OnMediaInterfaceFactoryConnectionError() {
3717 DCHECK(media_interface_proxy_); 3717 DCHECK(media_interface_proxy_);
3718 media_interface_proxy_.reset(); 3718 media_interface_proxy_.reset();
3719 } 3719 }
3720 3720
3721 void RenderFrameHostImpl::BindWakeLockServiceRequest( 3721 void RenderFrameHostImpl::BindWakeLockServiceRequest(
3722 const service_manager::BindSourceInfo& source_info, 3722 const service_manager::BindSourceInfo& source_info,
3723 device::mojom::WakeLockServiceRequest request) { 3723 device::mojom::WakeLockServiceRequest request) {
3724 device::mojom::WakeLockContext* wake_lock_service_context = 3724 device::mojom::WakeLockService* renderer_wake_lock =
3725 delegate_ ? delegate_->GetWakeLockServiceContext() : nullptr; 3725 delegate_ ? delegate_->GetRendererWakeLock() : nullptr;
3726 if (wake_lock_service_context) 3726 if (renderer_wake_lock)
3727 wake_lock_service_context->GetWakeLock(std::move(request)); 3727 renderer_wake_lock->AddClient(std::move(request));
3728 } 3728 }
3729 3729
3730 void RenderFrameHostImpl::GetInterface( 3730 void RenderFrameHostImpl::GetInterface(
3731 const std::string& interface_name, 3731 const std::string& interface_name,
3732 mojo::ScopedMessagePipeHandle interface_pipe) { 3732 mojo::ScopedMessagePipeHandle interface_pipe) {
3733 if (interface_registry_.get()) { 3733 if (interface_registry_.get()) {
3734 service_manager::BindSourceInfo source_info( 3734 service_manager::BindSourceInfo source_info(
3735 GetProcess()->GetChildIdentity(), service_manager::CapabilitySet()); 3735 GetProcess()->GetChildIdentity(), service_manager::CapabilitySet());
3736 interface_registry_->BindInterface(source_info, interface_name, 3736 interface_registry_->BindInterface(source_info, interface_name,
3737 std::move(interface_pipe)); 3737 std::move(interface_pipe));
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
3901 } 3901 }
3902 3902
3903 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame( 3903 void RenderFrameHostImpl::ForwardGetInterfaceToRenderFrame(
3904 const std::string& interface_name, 3904 const std::string& interface_name,
3905 mojo::ScopedMessagePipeHandle pipe) { 3905 mojo::ScopedMessagePipeHandle pipe) {
3906 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe)); 3906 GetRemoteInterfaces()->GetInterface(interface_name, std::move(pipe));
3907 } 3907 }
3908 #endif 3908 #endif
3909 3909
3910 } // namespace content 3910 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698