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 // Returns |true| if mDNS discovery is enabled. | |
158 virtual bool should_enable_mdns_discovery() const = 0; | |
mark a. foltz
2016/03/25 23:14:16
But the method sounds like mdns will be enabled in
btolsch
2016/03/26 10:53:58
Due to other changes, it turns out this is no long
| |
159 | |
160 // Enables mDNS discovery on Media Route Provider Manager. | |
161 // |should_enable_mdns_discovery| should also return |true| after this call. | |
162 virtual void EnsureMdnsDiscoveryEnabled() = 0; | |
mark a. foltz
2016/03/25 23:14:16
I don't feel great about exposing this API at the
btolsch
2016/03/26 10:53:58
I think that since should_enable_mdns_discovery()
| |
163 | |
157 // Adds |callback| to listen for state changes for presentation connected to | 164 // Adds |callback| to listen for state changes for presentation connected to |
158 // |route_id|. The returned Subscription object is owned by the caller. | 165 // |route_id|. The returned Subscription object is owned by the caller. |
159 // |callback| will be invoked whenever there are state changes, until the | 166 // |callback| will be invoked whenever there are state changes, until the |
160 // caller destroys the Subscription object. | 167 // caller destroys the Subscription object. |
161 virtual scoped_ptr<PresentationConnectionStateSubscription> | 168 virtual scoped_ptr<PresentationConnectionStateSubscription> |
162 AddPresentationConnectionStateChangedCallback( | 169 AddPresentationConnectionStateChangedCallback( |
163 const MediaRoute::Id& route_id, | 170 const MediaRoute::Id& route_id, |
164 const content::PresentationConnectionStateChangedCallback& callback) = 0; | 171 const content::PresentationConnectionStateChangedCallback& callback) = 0; |
165 | 172 |
166 // Called when the off the record (incognito) profile for this instance is | 173 // 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 | 232 |
226 // Unregisters a previously registered PresentationSessionMessagesObserver. | 233 // Unregisters a previously registered PresentationSessionMessagesObserver. |
227 // |observer| will stop receiving further updates. | 234 // |observer| will stop receiving further updates. |
228 virtual void UnregisterPresentationSessionMessagesObserver( | 235 virtual void UnregisterPresentationSessionMessagesObserver( |
229 PresentationSessionMessagesObserver* observer) = 0; | 236 PresentationSessionMessagesObserver* observer) = 0; |
230 }; | 237 }; |
231 | 238 |
232 } // namespace media_router | 239 } // namespace media_router |
233 | 240 |
234 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ | 241 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_H_ |
OLD | NEW |