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