OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_LOCAL_DISCOVERY_PRIVET_DEVICE_LISTER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_DEVICE_LISTER_IMPL_H_ |
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_DEVICE_LISTER_IMPL_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_DEVICE_LISTER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/local_discovery/privet_device_lister.h" | 10 #include "chrome/browser/local_discovery/privet_device_lister.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 ServiceDiscoveryClient* service_discovery_client, | 21 ServiceDiscoveryClient* service_discovery_client, |
22 PrivetDeviceLister::Delegate* delegate, | 22 PrivetDeviceLister::Delegate* delegate, |
23 const std::string& subtype); | 23 const std::string& subtype); |
24 | 24 |
25 PrivetDeviceListerImpl( | 25 PrivetDeviceListerImpl( |
26 ServiceDiscoveryClient* service_discovery_client, | 26 ServiceDiscoveryClient* service_discovery_client, |
27 PrivetDeviceLister::Delegate* delegate); | 27 PrivetDeviceLister::Delegate* delegate); |
28 | 28 |
29 virtual ~PrivetDeviceListerImpl(); | 29 virtual ~PrivetDeviceListerImpl(); |
30 | 30 |
31 virtual void Start() OVERRIDE; | 31 virtual void Start() override; |
32 virtual void DiscoverNewDevices(bool force_update) OVERRIDE; | 32 virtual void DiscoverNewDevices(bool force_update) override; |
33 | 33 |
34 protected: | 34 protected: |
35 virtual void OnDeviceChanged( | 35 virtual void OnDeviceChanged( |
36 bool added, | 36 bool added, |
37 const ServiceDescription& service_description) OVERRIDE; | 37 const ServiceDescription& service_description) override; |
38 virtual void OnDeviceRemoved(const std::string& service_name) OVERRIDE; | 38 virtual void OnDeviceRemoved(const std::string& service_name) override; |
39 virtual void OnDeviceCacheFlushed() OVERRIDE; | 39 virtual void OnDeviceCacheFlushed() override; |
40 | 40 |
41 private: | 41 private: |
42 PrivetDeviceLister::Delegate* delegate_; | 42 PrivetDeviceLister::Delegate* delegate_; |
43 ServiceDiscoveryDeviceLister device_lister_; | 43 ServiceDiscoveryDeviceLister device_lister_; |
44 }; | 44 }; |
45 | 45 |
46 } // namespace local_discovery | 46 } // namespace local_discovery |
47 | 47 |
48 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_DEVICE_LISTER_IMPL_H_ | 48 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_DEVICE_LISTER_IMPL_H_ |
OLD | NEW |