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

Side by Side Diff: content/browser/media/session/media_session_service_impl.cc

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/media/session/media_session_service_impl.h" 5 #include "content/browser/media/session/media_session_service_impl.h"
6 6
7 #include "content/browser/media/session/media_metadata_sanitizer.h" 7 #include "content/browser/media/session/media_metadata_sanitizer.h"
8 #include "content/browser/media/session/media_session_impl.h" 8 #include "content/browser/media/session/media_session_impl.h"
9 #include "content/browser/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 14 matching lines...) Expand all
25 25
26 MediaSessionServiceImpl::~MediaSessionServiceImpl() { 26 MediaSessionServiceImpl::~MediaSessionServiceImpl() {
27 MediaSessionImpl* session = GetMediaSession(); 27 MediaSessionImpl* session = GetMediaSession();
28 if (session) 28 if (session)
29 session->OnServiceDestroyed(this); 29 session->OnServiceDestroyed(this);
30 } 30 }
31 31
32 // static 32 // static
33 void MediaSessionServiceImpl::Create( 33 void MediaSessionServiceImpl::Create(
34 RenderFrameHost* render_frame_host, 34 RenderFrameHost* render_frame_host,
35 const service_manager::BindSourceInfo& source_info,
35 blink::mojom::MediaSessionServiceRequest request) { 36 blink::mojom::MediaSessionServiceRequest request) {
36 MediaSessionServiceImpl* impl = 37 MediaSessionServiceImpl* impl =
37 new MediaSessionServiceImpl(render_frame_host); 38 new MediaSessionServiceImpl(render_frame_host);
38 impl->Bind(std::move(request)); 39 impl->Bind(std::move(request));
39 } 40 }
40 41
41 RenderFrameHost* MediaSessionServiceImpl::GetRenderFrameHost() { 42 RenderFrameHost* MediaSessionServiceImpl::GetRenderFrameHost() {
42 return RenderFrameHost::FromID(render_frame_process_id_, 43 return RenderFrameHost::FromID(render_frame_process_id_,
43 render_frame_routing_id_); 44 render_frame_routing_id_);
44 } 45 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 return MediaSessionImpl::Get(contents); 121 return MediaSessionImpl::Get(contents);
121 } 122 }
122 123
123 void MediaSessionServiceImpl::Bind( 124 void MediaSessionServiceImpl::Bind(
124 blink::mojom::MediaSessionServiceRequest request) { 125 blink::mojom::MediaSessionServiceRequest request) {
125 binding_.reset(new mojo::Binding<blink::mojom::MediaSessionService>( 126 binding_.reset(new mojo::Binding<blink::mojom::MediaSessionService>(
126 this, std::move(request))); 127 this, std::move(request)));
127 } 128 }
128 129
129 } // namespace content 130 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/session/media_session_service_impl.h ('k') | content/browser/mime_registry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698