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_FEATURE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_FEATURE_H_ |
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_FEATURE_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_FEATURE_H_ |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 class BrowserContext; | 9 class BrowserContext; |
10 } | 10 } |
11 | 11 |
12 namespace media_router { | 12 namespace media_router { |
13 | 13 |
14 // Returns true if Media Router is enabled for |context|. | 14 // Returns true if Media Router is enabled for |context|. |
15 bool MediaRouterEnabled(content::BrowserContext* context); | 15 bool MediaRouterEnabled(content::BrowserContext* context); |
16 | 16 |
| 17 #if !defined(OS_ANDROID) |
| 18 // Returns true if browser side DIAL discovery is enabled. |
| 19 bool DialLocalDiscoveryEnabled(); |
| 20 |
| 21 // Returns true if browser side Cast discovery is enabled. |
| 22 bool CastDiscoveryEnabled(); |
| 23 #endif |
| 24 |
17 } // namespace media_router | 25 } // namespace media_router |
18 | 26 |
19 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_FEATURE_H_ | 27 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_FEATURE_H_ |
OLD | NEW |