| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_DISCOVERY_DIAL_DIAL_MEDIA_SINK_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_DIAL_MEDIA_SINK_SERVICE_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_DIAL_MEDIA_SINK_SERVICE_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_DIAL_MEDIA_SINK_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 class DialMediaSinkService : public MediaSinkService, | 24 class DialMediaSinkService : public MediaSinkService, |
| 25 public DialRegistry::Observer { | 25 public DialRegistry::Observer { |
| 26 public: | 26 public: |
| 27 DialMediaSinkService(const OnSinksDiscoveredCallback& callback, | 27 DialMediaSinkService(const OnSinksDiscoveredCallback& callback, |
| 28 net::URLRequestContextGetter* request_context); | 28 net::URLRequestContextGetter* request_context); |
| 29 ~DialMediaSinkService() override; | 29 ~DialMediaSinkService() override; |
| 30 | 30 |
| 31 // MediaSinkService implementation | 31 // MediaSinkService implementation |
| 32 void Start() override; | 32 void Start() override; |
| 33 | 33 |
| 34 void Stop(); | 34 virtual void Stop(); |
| 35 | 35 |
| 36 protected: | 36 protected: |
| 37 virtual DialRegistry* dial_registry(); | 37 virtual DialRegistry* dial_registry(); |
| 38 | 38 |
| 39 // Returns instance of device description service. Create a new one if none | 39 // Returns instance of device description service. Create a new one if none |
| 40 // exists. | 40 // exists. |
| 41 virtual DeviceDescriptionService* GetDescriptionService(); | 41 virtual DeviceDescriptionService* GetDescriptionService(); |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 friend class DialMediaSinkServiceTest; | 44 friend class DialMediaSinkServiceTest; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // Device data list from current round of discovery. | 81 // Device data list from current round of discovery. |
| 82 DialRegistry::DeviceList current_devices_; | 82 DialRegistry::DeviceList current_devices_; |
| 83 | 83 |
| 84 scoped_refptr<net::URLRequestContextGetter> request_context_; | 84 scoped_refptr<net::URLRequestContextGetter> request_context_; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace media_router | 87 } // namespace media_router |
| 88 | 88 |
| 89 #endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_DIAL_MEDIA_SINK_SERVICE_H_ | 89 #endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_DIAL_MEDIA_SINK_SERVICE_H_ |
| OLD | NEW |