| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 const MediaRoute::Id& route_id, | 142 const MediaRoute::Id& route_id, |
| 143 scoped_ptr<std::vector<uint8_t>> data, | 143 scoped_ptr<std::vector<uint8_t>> data, |
| 144 const SendRouteMessageCallback& callback) = 0; | 144 const SendRouteMessageCallback& callback) = 0; |
| 145 | 145 |
| 146 // Adds a new |issue|. | 146 // Adds a new |issue|. |
| 147 virtual void AddIssue(const Issue& issue) = 0; | 147 virtual void AddIssue(const Issue& issue) = 0; |
| 148 | 148 |
| 149 // Clears the issue with the id |issue_id|. | 149 // Clears the issue with the id |issue_id|. |
| 150 virtual void ClearIssue(const Issue::Id& issue_id) = 0; | 150 virtual void ClearIssue(const Issue::Id& issue_id) = 0; |
| 151 | 151 |
| 152 // Notifies the Media Router that the user has taken an action involving the |
| 153 // Media Router. This can be used to perform any initialization that is not |
| 154 // approriate to be done at construction. |
| 155 virtual void OnUserGesture() = 0; |
| 156 |
| 152 // Adds |callback| to listen for state changes for presentation connected to | 157 // Adds |callback| to listen for state changes for presentation connected to |
| 153 // |route_id|. The returned Subscription object is owned by the caller. | 158 // |route_id|. The returned Subscription object is owned by the caller. |
| 154 // |callback| will be invoked whenever there are state changes, until the | 159 // |callback| will be invoked whenever there are state changes, until the |
| 155 // caller destroys the Subscription object. | 160 // caller destroys the Subscription object. |
| 156 virtual scoped_ptr<PresentationConnectionStateSubscription> | 161 virtual scoped_ptr<PresentationConnectionStateSubscription> |
| 157 AddPresentationConnectionStateChangedCallback( | 162 AddPresentationConnectionStateChangedCallback( |
| 158 const MediaRoute::Id& route_id, | 163 const MediaRoute::Id& route_id, |
| 159 const content::PresentationConnectionStateChangedCallback& callback) = 0; | 164 const content::PresentationConnectionStateChangedCallback& callback) = 0; |
| 160 | 165 |
| 161 private: | 166 private: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 221 |
| 217 // Unregisters a previously registered PresentationSessionMessagesObserver. | 222 // Unregisters a previously registered PresentationSessionMessagesObserver. |
| 218 // |observer| will stop receiving further updates. | 223 // |observer| will stop receiving further updates. |
| 219 virtual void UnregisterPresentationSessionMessagesObserver( | 224 virtual void UnregisterPresentationSessionMessagesObserver( |
| 220 PresentationSessionMessagesObserver* observer) = 0; | 225 PresentationSessionMessagesObserver* observer) = 0; |
| 221 }; | 226 }; |
| 222 | 227 |
| 223 } // namespace media_router | 228 } // namespace media_router |
| 224 | 229 |
| 225 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ | 230 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ |
| OLD | NEW |