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

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

Issue 1245213002: [MediaRouter] Implement send binary message from PSDImpl to MRPManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pass scoped_ptr<>, avoid copying 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 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_MEDIA_ROUTER_MOJO_IMPL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void JoinRoute( 65 void JoinRoute(
66 const MediaSource::Id& source_id, 66 const MediaSource::Id& source_id,
67 const std::string& presentation_id, 67 const std::string& presentation_id,
68 const GURL& origin, 68 const GURL& origin,
69 int tab_id, 69 int tab_id,
70 const std::vector<MediaRouteResponseCallback>& callbacks) override; 70 const std::vector<MediaRouteResponseCallback>& callbacks) override;
71 void CloseRoute(const MediaRoute::Id& route_id) override; 71 void CloseRoute(const MediaRoute::Id& route_id) override;
72 void SendRouteMessage(const MediaRoute::Id& route_id, 72 void SendRouteMessage(const MediaRoute::Id& route_id,
73 const std::string& message, 73 const std::string& message,
74 const SendRouteMessageCallback& callback) override; 74 const SendRouteMessageCallback& callback) override;
75 void SendRouteBinaryMessage(
76 const MediaRoute::Id& route_id,
77 scoped_ptr<std::vector<uint8>> data,
78 const SendRouteMessageCallback& callback) override;
75 void ListenForRouteMessages( 79 void ListenForRouteMessages(
76 const std::vector<MediaRoute::Id>& route_ids, 80 const std::vector<MediaRoute::Id>& route_ids,
77 const PresentationSessionMessageCallback& message_cb) override; 81 const PresentationSessionMessageCallback& message_cb) override;
78 void ClearIssue(const Issue::Id& issue_id) override; 82 void ClearIssue(const Issue::Id& issue_id) override;
79 void RegisterMediaSinksObserver(MediaSinksObserver* observer) override; 83 void RegisterMediaSinksObserver(MediaSinksObserver* observer) override;
80 void UnregisterMediaSinksObserver(MediaSinksObserver* observer) override; 84 void UnregisterMediaSinksObserver(MediaSinksObserver* observer) override;
81 void RegisterMediaRoutesObserver(MediaRoutesObserver* observer) override; 85 void RegisterMediaRoutesObserver(MediaRoutesObserver* observer) override;
82 void UnregisterMediaRoutesObserver(MediaRoutesObserver* observer) override; 86 void UnregisterMediaRoutesObserver(MediaRoutesObserver* observer) override;
83 void RegisterIssuesObserver(IssuesObserver* observer) override; 87 void RegisterIssuesObserver(IssuesObserver* observer) override;
84 void UnregisterIssuesObserver(IssuesObserver* observer) override; 88 void UnregisterIssuesObserver(IssuesObserver* observer) override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const std::vector<MediaRouteResponseCallback>& callbacks); 128 const std::vector<MediaRouteResponseCallback>& callbacks);
125 void DoJoinRoute(const MediaSource::Id& source_id, 129 void DoJoinRoute(const MediaSource::Id& source_id,
126 const std::string& presentation_id, 130 const std::string& presentation_id,
127 const std::string& origin, 131 const std::string& origin,
128 int tab_id, 132 int tab_id,
129 const std::vector<MediaRouteResponseCallback>& callbacks); 133 const std::vector<MediaRouteResponseCallback>& callbacks);
130 void DoCloseRoute(const MediaRoute::Id& route_id); 134 void DoCloseRoute(const MediaRoute::Id& route_id);
131 void DoSendSessionMessage(const MediaRoute::Id& route_id, 135 void DoSendSessionMessage(const MediaRoute::Id& route_id,
132 const std::string& message, 136 const std::string& message,
133 const SendRouteMessageCallback& callback); 137 const SendRouteMessageCallback& callback);
138 void DoSendSessionBinaryMessage(const MediaRoute::Id& route_id,
139 std::vector<uint8>* data,
140 const SendRouteMessageCallback& callback);
134 void DoListenForRouteMessages( 141 void DoListenForRouteMessages(
135 const std::vector<MediaRoute::Id>& route_ids, 142 const std::vector<MediaRoute::Id>& route_ids,
136 const PresentationSessionMessageCallback& message_cb); 143 const PresentationSessionMessageCallback& message_cb);
137 void DoClearIssue(const Issue::Id& issue_id); 144 void DoClearIssue(const Issue::Id& issue_id);
138 void DoStartObservingMediaSinks(const MediaSource::Id& source_id); 145 void DoStartObservingMediaSinks(const MediaSource::Id& source_id);
139 void DoStopObservingMediaSinks(const MediaSource::Id& source_id); 146 void DoStopObservingMediaSinks(const MediaSource::Id& source_id);
140 void DoStartObservingMediaRoutes(); 147 void DoStartObservingMediaRoutes();
141 void DoStopObservingMediaRoutes(); 148 void DoStopObservingMediaRoutes();
142 void DoStartObservingIssues(); 149 void DoStartObservingIssues();
143 void DoStopObservingIssues(); 150 void DoStopObservingIssues();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 std::string instance_id_; 204 std::string instance_id_;
198 205
199 base::ThreadChecker thread_checker_; 206 base::ThreadChecker thread_checker_;
200 207
201 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 208 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
202 }; 209 };
203 210
204 } // namespace media_router 211 } // namespace media_router
205 212
206 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_ 213 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698