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

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

Issue 1430413003: [Media Router] Connection state change listening redesign part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 5 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void ListenForSessionMessages( 113 void ListenForSessionMessages(
114 int render_process_id, 114 int render_process_id,
115 int render_frame_id, 115 int render_frame_id,
116 const content::PresentationSessionInfo& session, 116 const content::PresentationSessionInfo& session,
117 const content::PresentationSessionMessageCallback& message_cb) override; 117 const content::PresentationSessionMessageCallback& message_cb) override;
118 void SendMessage(int render_process_id, 118 void SendMessage(int render_process_id,
119 int render_frame_id, 119 int render_frame_id,
120 const content::PresentationSessionInfo& session, 120 const content::PresentationSessionInfo& session,
121 scoped_ptr<content::PresentationSessionMessage> message, 121 scoped_ptr<content::PresentationSessionMessage> message,
122 const SendMessageCallback& send_message_cb) override; 122 const SendMessageCallback& send_message_cb) override;
123 void ListenForSessionStateChange( 123 void ListenForConnectionStateChange(
124 int render_process_id, 124 int render_process_id,
125 int render_frame_id, 125 int render_frame_id,
126 const content::SessionStateChangedCallback& state_changed_cb) override; 126 const content::PresentationSessionInfo& connection,
127 const content::PresentationConnectionStateChangedCallback&
128 state_changed_cb) override;
127 129
128 // Callback invoked when a default PresentationRequest is started from a 130 // Callback invoked when a default PresentationRequest is started from a
129 // browser-initiated dialog. 131 // browser-initiated dialog.
130 void OnRouteResponse(const PresentationRequest& request, 132 void OnRouteResponse(const PresentationRequest& request,
131 const MediaRoute* route, 133 const MediaRoute* route,
132 const std::string& presentation_id, 134 const std::string& presentation_id,
133 const std::string& error); 135 const std::string& error);
134 136
135 // Adds / removes an observer for listening to default PresentationRequest 137 // Adds / removes an observer for listening to default PresentationRequest
136 // changes. This class does not own |observer|. When |observer| is about to 138 // changes. This class does not own |observer|. When |observer| is about to
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 scoped_ptr<PresentationFrameManager> frame_manager_; 205 scoped_ptr<PresentationFrameManager> frame_manager_;
204 206
205 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; 207 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_;
206 208
207 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); 209 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl);
208 }; 210 };
209 211
210 } // namespace media_router 212 } // namespace media_router
211 213
212 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ 214 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698