Chromium Code Reviews| Index: chromeos/components/tether/tether_host_fetcher.h |
| diff --git a/chromeos/components/tether/tether_host_fetcher.h b/chromeos/components/tether/tether_host_fetcher.h |
| index d190758c9821b9096a4fab593a941e6e6f5c3ff0..e1a1fb3d5a3f61189a80f9b789af7695bc426ea3 100644 |
| --- a/chromeos/components/tether/tether_host_fetcher.h |
| +++ b/chromeos/components/tether/tether_host_fetcher.h |
| @@ -28,10 +28,7 @@ namespace tether { |
| // synced via CryptAuth. |
| class TetherHostFetcher { |
| public: |
| - TetherHostFetcher(const std::string& user_id, |
| - const std::string& user_private_key, |
| - cryptauth::CryptAuthService* cryptauth_service, |
| - cryptauth::CryptAuthDeviceManager* device_manager); |
| + explicit TetherHostFetcher(cryptauth::CryptAuthService* cryptauth_service); |
| virtual ~TetherHostFetcher(); |
| // Fetches all tether hosts. |
| @@ -47,7 +44,8 @@ class TetherHostFetcher { |
| protected: |
| struct TetherHostFetchRequest { |
| - TetherHostFetchRequest(const TetherHostListCallback& list_callback); |
| + explicit TetherHostFetchRequest( |
| + const TetherHostListCallback& list_callback); |
| TetherHostFetchRequest(const std::string& device_id, |
| const TetherHostCallback& single_callback); |
| TetherHostFetchRequest(const TetherHostFetchRequest& other); |
| @@ -63,6 +61,11 @@ class TetherHostFetcher { |
| TetherHostCallback single_callback; |
| }; |
| + TetherHostFetcher(const std::string& user_id, |
| + const std::string& user_private_key, |
| + cryptauth::CryptAuthService* cryptauth_service, |
| + cryptauth::CryptAuthDeviceManager* device_manager); |
|
stevenjb
2017/04/10 20:26:59
one constructor
Kyle Horimoto
2017/04/11 01:40:40
Done.
|
| + |
| void OnRemoteDevicesLoaded(const cryptauth::RemoteDeviceList& remote_devices); |
| std::vector<TetherHostFetchRequest> requests_; |