| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ | 6 #define CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 // DeviceDataProvider::ListenerInterface implementation. | 48 // DeviceDataProvider::ListenerInterface implementation. |
| 49 virtual void DeviceDataUpdateAvailable(RadioDataProvider* provider); | 49 virtual void DeviceDataUpdateAvailable(RadioDataProvider* provider); |
| 50 virtual void DeviceDataUpdateAvailable(WifiDataProvider* provider); | 50 virtual void DeviceDataUpdateAvailable(WifiDataProvider* provider); |
| 51 | 51 |
| 52 // NetworkLocationRequest::ListenerInterface implementation. | 52 // NetworkLocationRequest::ListenerInterface implementation. |
| 53 virtual void LocationResponseAvailable(const Position& position, | 53 virtual void LocationResponseAvailable(const Position& position, |
| 54 bool server_error, | 54 bool server_error, |
| 55 const string16& access_token); | 55 const string16& access_token); |
| 56 | 56 |
| 57 AccessTokenStore* access_token_store_; | 57 scoped_refptr<AccessTokenStore> access_token_store_; |
| 58 | 58 |
| 59 // The device data providers, acquired via global factories. | 59 // The device data providers, acquired via global factories. |
| 60 RadioDataProvider* radio_data_provider_; | 60 RadioDataProvider* radio_data_provider_; |
| 61 WifiDataProvider* wifi_data_provider_; | 61 WifiDataProvider* wifi_data_provider_; |
| 62 | 62 |
| 63 // The radio and wifi data, flags to indicate if each data set is complete, | 63 // The radio and wifi data, flags to indicate if each data set is complete, |
| 64 // and their guarding mutex. | 64 // and their guarding mutex. |
| 65 RadioData radio_data_; | 65 RadioData radio_data_; |
| 66 WifiData wifi_data_; | 66 WifiData wifi_data_; |
| 67 bool is_radio_data_complete_; | 67 bool is_radio_data_complete_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 84 scoped_ptr<NetworkLocationRequest> request_; | 84 scoped_ptr<NetworkLocationRequest> request_; |
| 85 | 85 |
| 86 ScopedRunnableMethodFactory<NetworkLocationProvider> delayed_start_task_; | 86 ScopedRunnableMethodFactory<NetworkLocationProvider> delayed_start_task_; |
| 87 // The cache of positions. | 87 // The cache of positions. |
| 88 scoped_ptr<PositionCache> position_cache_; | 88 scoped_ptr<PositionCache> position_cache_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(NetworkLocationProvider); | 90 DISALLOW_COPY_AND_ASSIGN(NetworkLocationProvider); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 #endif // CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ | 93 #endif // CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ |
| OLD | NEW |