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

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

Issue 2706463002: [Presentation API] Mojo typemap for content::PresentationConnectionMessage (Closed)
Patch Set: Remove TODO 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 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_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 // Terminates the media route specified by |route_id|. 133 // Terminates the media route specified by |route_id|.
134 virtual void TerminateRoute(const MediaRoute::Id& route_id) = 0; 134 virtual void TerminateRoute(const MediaRoute::Id& route_id) = 0;
135 135
136 // Detaches the media route specified by |route_id|. The request might come 136 // Detaches the media route specified by |route_id|. The request might come
137 // from the page or from an event like navigation or garbage collection. 137 // from the page or from an event like navigation or garbage collection.
138 virtual void DetachRoute(const MediaRoute::Id& route_id) = 0; 138 virtual void DetachRoute(const MediaRoute::Id& route_id) = 0;
139 139
140 // Posts |message| to a MediaSink connected via MediaRoute with |route_id|. 140 // Posts |message| to a MediaSink connected via MediaRoute with |route_id|.
141 virtual void SendRouteMessage(const MediaRoute::Id& route_id, 141 virtual void SendRouteMessage(const MediaRoute::Id& route_id,
142 const std::string& message, 142 std::string message,
143 const SendRouteMessageCallback& callback) = 0; 143 const SendRouteMessageCallback& callback) = 0;
144 144
145 // Sends |data| to a MediaSink connected via MediaRoute with |route_id|. 145 // Sends |data| to a MediaSink connected via MediaRoute with |route_id|.
146 // This is called for Blob / ArrayBuffer / ArrayBufferView types. 146 // This is called for Blob / ArrayBuffer / ArrayBufferView types.
147 virtual void SendRouteBinaryMessage( 147 virtual void SendRouteBinaryMessage(
148 const MediaRoute::Id& route_id, 148 const MediaRoute::Id& route_id,
149 std::unique_ptr<std::vector<uint8_t>> data, 149 std::vector<uint8_t> data,
150 const SendRouteMessageCallback& callback) = 0; 150 const SendRouteMessageCallback& callback) = 0;
151 151
152 // Adds a new issue with info |issue_info|. 152 // Adds a new issue with info |issue_info|.
153 virtual void AddIssue(const IssueInfo& issue_info) = 0; 153 virtual void AddIssue(const IssueInfo& issue_info) = 0;
154 154
155 // Clears the issue with the id |issue_id|. 155 // Clears the issue with the id |issue_id|.
156 virtual void ClearIssue(const Issue::Id& issue_id) = 0; 156 virtual void ClearIssue(const Issue::Id& issue_id) = 0;
157 157
158 // Notifies the Media Router that the user has taken an action involving the 158 // Notifies the Media Router that the user has taken an action involving the
159 // Media Router. This can be used to perform any initialization that is not 159 // Media Router. This can be used to perform any initialization that is not
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 // Unregisters a previously registered RouteMessagesObserver. |observer| will 246 // Unregisters a previously registered RouteMessagesObserver. |observer| will
247 // stop receiving further updates. 247 // stop receiving further updates.
248 virtual void UnregisterRouteMessageObserver( 248 virtual void UnregisterRouteMessageObserver(
249 RouteMessageObserver* observer) = 0; 249 RouteMessageObserver* observer) = 0;
250 }; 250 };
251 251
252 } // namespace media_router 252 } // namespace media_router
253 253
254 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ 254 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698