| OLD | NEW |
| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 const std::string& message, | 140 const std::string& message, |
| 141 const SendRouteMessageCallback& callback) = 0; | 141 const SendRouteMessageCallback& callback) = 0; |
| 142 | 142 |
| 143 // Sends |data| to a MediaSink connected via MediaRoute with |route_id|. | 143 // Sends |data| to a MediaSink connected via MediaRoute with |route_id|. |
| 144 // This is called for Blob / ArrayBuffer / ArrayBufferView types. | 144 // This is called for Blob / ArrayBuffer / ArrayBufferView types. |
| 145 virtual void SendRouteBinaryMessage( | 145 virtual void SendRouteBinaryMessage( |
| 146 const MediaRoute::Id& route_id, | 146 const MediaRoute::Id& route_id, |
| 147 std::unique_ptr<std::vector<uint8_t>> data, | 147 std::unique_ptr<std::vector<uint8_t>> data, |
| 148 const SendRouteMessageCallback& callback) = 0; | 148 const SendRouteMessageCallback& callback) = 0; |
| 149 | 149 |
| 150 // Adds a new |issue|. | 150 // Adds a new issue with info |issue_info|. |
| 151 virtual void AddIssue(const Issue& issue) = 0; | 151 virtual void AddIssue(const IssueInfo& issue_info) = 0; |
| 152 | 152 |
| 153 // Clears the issue with the id |issue_id|. | 153 // Clears the issue with the id |issue_id|. |
| 154 virtual void ClearIssue(const Issue::Id& issue_id) = 0; | 154 virtual void ClearIssue(const Issue::Id& issue_id) = 0; |
| 155 | 155 |
| 156 // Notifies the Media Router that the user has taken an action involving the | 156 // Notifies the Media Router that the user has taken an action involving the |
| 157 // Media Router. This can be used to perform any initialization that is not | 157 // Media Router. This can be used to perform any initialization that is not |
| 158 // approriate to be done at construction. | 158 // approriate to be done at construction. |
| 159 virtual void OnUserGesture() = 0; | 159 virtual void OnUserGesture() = 0; |
| 160 | 160 |
| 161 // Searches for a MediaSink using |search_input| and |domain| as criteria. | 161 // Searches for a MediaSink using |search_input| and |domain| as criteria. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 // Unregisters a previously registered RouteMessagesObserver. |observer| will | 240 // Unregisters a previously registered RouteMessagesObserver. |observer| will |
| 241 // stop receiving further updates. | 241 // stop receiving further updates. |
| 242 virtual void UnregisterRouteMessageObserver( | 242 virtual void UnregisterRouteMessageObserver( |
| 243 RouteMessageObserver* observer) = 0; | 243 RouteMessageObserver* observer) = 0; |
| 244 }; | 244 }; |
| 245 | 245 |
| 246 } // namespace media_router | 246 } // namespace media_router |
| 247 | 247 |
| 248 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ | 248 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ |
| OLD | NEW |