| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SERVICE_DISCOVERY_CLIENT_UTILITY_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_UTILITY_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_UTILITY_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_UTILITY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
| 11 #include "base/macros.h" |
| 11 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" | 12 #include "chrome/browser/local_discovery/service_discovery_shared_client.h" |
| 12 #include "chrome/common/local_discovery/service_discovery_client.h" | 13 #include "chrome/common/local_discovery/service_discovery_client.h" |
| 13 #include "net/base/network_change_notifier.h" | 14 #include "net/base/network_change_notifier.h" |
| 14 | 15 |
| 15 namespace local_discovery { | 16 namespace local_discovery { |
| 16 | 17 |
| 17 class ServiceDiscoveryHostClient; | 18 class ServiceDiscoveryHostClient; |
| 18 | 19 |
| 19 // Wrapper for ServiceDiscoveryHostClient to hide restarting of utility process | 20 // Wrapper for ServiceDiscoveryHostClient to hide restarting of utility process |
| 20 // from mdns users. | 21 // from mdns users. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 51 scoped_refptr<ServiceDiscoveryHostClient> host_client_; | 52 scoped_refptr<ServiceDiscoveryHostClient> host_client_; |
| 52 int restart_attempts_; | 53 int restart_attempts_; |
| 53 base::WeakPtrFactory<ServiceDiscoveryClientUtility> weak_ptr_factory_; | 54 base::WeakPtrFactory<ServiceDiscoveryClientUtility> weak_ptr_factory_; |
| 54 | 55 |
| 55 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoveryClientUtility); | 56 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoveryClientUtility); |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace local_discovery | 59 } // namespace local_discovery |
| 59 | 60 |
| 60 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_UTILITY_H_ | 61 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_CLIENT_UTILITY_H_ |
| OLD | NEW |