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

Side by Side Diff: chrome/browser/media/router/offscreen_presentation_manager.h

Issue 2737413003: [Presentation API] Remove references to presentation sessions. (Closed)
Patch Set: Update presentation service mock. Created 3 years, 9 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 #ifndef CHROME_BROWSER_MEDIA_ROUTER_OFFSCREEN_PRESENTATION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_OFFSCREEN_PRESENTATION_MANAGER_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_OFFSCREEN_PRESENTATION_MANAGER_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_OFFSCREEN_PRESENTATION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Invoked on receiver's PresentationServiceImpl when controller connection is 50 // Invoked on receiver's PresentationServiceImpl when controller connection is
51 // established. 51 // established.
52 // 52 //
53 // |presentation_receiver_client_|: blink::mojom::PresentationServiceClienPtr 53 // |presentation_receiver_client_|: blink::mojom::PresentationServiceClienPtr
54 // for the presentation receiver. 54 // for the presentation receiver.
55 // |controller_connection_ptr|: blink::mojom::PresentationConnectionPtr for 55 // |controller_connection_ptr|: blink::mojom::PresentationConnectionPtr for
56 // blink::PresentationConnection object in controlling frame's render process. 56 // blink::PresentationConnection object in controlling frame's render process.
57 // |receiver_connection_request|: Mojo InterfaceRequest to be bind to 57 // |receiver_connection_request|: Mojo InterfaceRequest to be bind to
58 // blink::PresentationConnection object in receiver frame's render process. 58 // blink::PresentationConnection object in receiver frame's render process.
59 // void PresentationServiceImpl::OnReceiverConnectionAvailable( 59 // void PresentationServiceImpl::OnReceiverConnectionAvailable(
60 // const content::PresentationSessionInfo& session, 60 // const content::PresentationInfo& presentation_info,
61 // PresentationConnectionPtr controller_connection_ptr, 61 // PresentationConnectionPtr controller_connection_ptr,
62 // PresentationConnectionRequest receiver_connection_request) { 62 // PresentationConnectionRequest receiver_connection_request) {
63 // presentation_receiver_client_->OnReceiverConnectionAvailable( 63 // presentation_receiver_client_->OnReceiverConnectionAvailable(
64 // blink::mojom::PresentationSessionInfo::From(session_info), 64 // blink::mojom::PresentationInfo::From(presentation_info),
65 // std::move(controller_connection_ptr), 65 // std::move(controller_connection_ptr),
66 // std::move(receiver_connection_request)); 66 // std::move(receiver_connection_request));
67 // } 67 // }
68 // 68 //
69 // Send message from controlling/receiver frame to receiver/controlling frame: 69 // Send message from controlling/receiver frame to receiver/controlling frame:
70 // 70 //
71 // |target_connection_|: member variable of 71 // |target_connection_|: member variable of
72 // blink::mojom::PresentationConnectionPtr type, 72 // blink::mojom::PresentationConnectionPtr type,
73 // refering to remote PresentationConnectionProxy 73 // refering to remote PresentationConnectionProxy
74 // object on receiver/controlling frame. 74 // object on receiver/controlling frame.
75 // |message|: Text message to be sent. 75 // |message|: Text message to be sent.
76 // PresentationConnctionPtr::SendString( 76 // PresentationConnctionPtr::SendString(
77 // const blink::WebString& message) { 77 // const blink::WebString& message) {
78 // target_connection_->OnSessionMessageReceived(std::move(session_message)); 78 // target_connection_->OnConnectionMessageReceived(
79 // std::move(connection_message));
79 // } 80 // }
80 // 81 //
81 // A controller or receiver leaves the offscreen presentation (e.g., due to 82 // A controller or receiver leaves the offscreen presentation (e.g., due to
82 // navigation) by unregistering themselves from OffscreenPresentation object. 83 // navigation) by unregistering themselves from OffscreenPresentation object.
83 // 84 //
84 // When the receiver is no longer associated with an offscreen presentation, it 85 // When the receiver is no longer associated with an offscreen presentation, it
85 // shall unregister itself with OffscreenPresentationManager. Unregistration 86 // shall unregister itself with OffscreenPresentationManager. Unregistration
86 // will prevent additional controllers from establishing a connection with the 87 // will prevent additional controllers from establishing a connection with the
87 // receiver: 88 // receiver:
88 // 89 //
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 OffscreenPresentationMap offscreen_presentations_; 231 OffscreenPresentationMap offscreen_presentations_;
231 232
232 base::ThreadChecker thread_checker_; 233 base::ThreadChecker thread_checker_;
233 234
234 DISALLOW_COPY_AND_ASSIGN(OffscreenPresentationManager); 235 DISALLOW_COPY_AND_ASSIGN(OffscreenPresentationManager);
235 }; 236 };
236 237
237 } // namespace media_router 238 } // namespace media_router
238 239
239 #endif // CHROME_BROWSER_MEDIA_ROUTER_OFFSCREEN_PRESENTATION_MANAGER_H_ 240 #endif // CHROME_BROWSER_MEDIA_ROUTER_OFFSCREEN_PRESENTATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698