Chromium Code Reviews| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 const MediaRoute::Id& route_id, | 147 const MediaRoute::Id& route_id, |
| 148 scoped_ptr<std::vector<uint8_t>> data, | 148 scoped_ptr<std::vector<uint8_t>> data, |
| 149 const SendRouteMessageCallback& callback) = 0; | 149 const SendRouteMessageCallback& callback) = 0; |
| 150 | 150 |
| 151 // Adds a new |issue|. | 151 // Adds a new |issue|. |
| 152 virtual void AddIssue(const Issue& issue) = 0; | 152 virtual void AddIssue(const Issue& issue) = 0; |
| 153 | 153 |
| 154 // Clears the issue with the id |issue_id|. | 154 // Clears the issue with the id |issue_id|. |
| 155 virtual void ClearIssue(const Issue::Id& issue_id) = 0; | 155 virtual void ClearIssue(const Issue::Id& issue_id) = 0; |
| 156 | 156 |
| 157 // Notifies the Media Router that the user has taken an action involving the | |
| 158 // Media Router. This can be used to perform any initialization that is not | |
| 159 // approriate to be done at construction. | |
| 160 virtual void OnUserInteraction() = 0; | |
|
mark a. foltz
2016/03/29 00:48:20
Sorry to bikeshed, but often user initiated action
| |
| 161 | |
| 157 // Adds |callback| to listen for state changes for presentation connected to | 162 // Adds |callback| to listen for state changes for presentation connected to |
| 158 // |route_id|. The returned Subscription object is owned by the caller. | 163 // |route_id|. The returned Subscription object is owned by the caller. |
| 159 // |callback| will be invoked whenever there are state changes, until the | 164 // |callback| will be invoked whenever there are state changes, until the |
| 160 // caller destroys the Subscription object. | 165 // caller destroys the Subscription object. |
| 161 virtual scoped_ptr<PresentationConnectionStateSubscription> | 166 virtual scoped_ptr<PresentationConnectionStateSubscription> |
| 162 AddPresentationConnectionStateChangedCallback( | 167 AddPresentationConnectionStateChangedCallback( |
| 163 const MediaRoute::Id& route_id, | 168 const MediaRoute::Id& route_id, |
| 164 const content::PresentationConnectionStateChangedCallback& callback) = 0; | 169 const content::PresentationConnectionStateChangedCallback& callback) = 0; |
| 165 | 170 |
| 166 // Called when the off the record (incognito) profile for this instance is | 171 // Called when the off the record (incognito) profile for this instance is |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 225 | 230 |
| 226 // Unregisters a previously registered PresentationSessionMessagesObserver. | 231 // Unregisters a previously registered PresentationSessionMessagesObserver. |
| 227 // |observer| will stop receiving further updates. | 232 // |observer| will stop receiving further updates. |
| 228 virtual void UnregisterPresentationSessionMessagesObserver( | 233 virtual void UnregisterPresentationSessionMessagesObserver( |
| 229 PresentationSessionMessagesObserver* observer) = 0; | 234 PresentationSessionMessagesObserver* observer) = 0; |
| 230 }; | 235 }; |
| 231 | 236 |
| 232 } // namespace media_router | 237 } // namespace media_router |
| 233 | 238 |
| 234 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ | 239 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ |
| OLD | NEW |