| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "base/thread.h" | 16 #include "base/threading/thread.h" |
| 17 #include "chrome/browser/geolocation/device_data_provider.h" | 17 #include "chrome/browser/geolocation/device_data_provider.h" |
| 18 #include "chrome/browser/geolocation/location_provider.h" | 18 #include "chrome/browser/geolocation/location_provider.h" |
| 19 #include "chrome/browser/geolocation/network_location_request.h" | 19 #include "chrome/browser/geolocation/network_location_request.h" |
| 20 #include "chrome/common/geoposition.h" | 20 #include "chrome/common/geoposition.h" |
| 21 | 21 |
| 22 class URLFetcherProtectEntry; | 22 class URLFetcherProtectEntry; |
| 23 | 23 |
| 24 class NetworkLocationProvider | 24 class NetworkLocationProvider |
| 25 : public LocationProviderBase, | 25 : public LocationProviderBase, |
| 26 public GatewayDataProvider::ListenerInterface, | 26 public GatewayDataProvider::ListenerInterface, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 scoped_ptr<NetworkLocationRequest> request_; | 136 scoped_ptr<NetworkLocationRequest> request_; |
| 137 | 137 |
| 138 ScopedRunnableMethodFactory<NetworkLocationProvider> delayed_start_task_; | 138 ScopedRunnableMethodFactory<NetworkLocationProvider> delayed_start_task_; |
| 139 // The cache of positions. | 139 // The cache of positions. |
| 140 scoped_ptr<PositionCache> position_cache_; | 140 scoped_ptr<PositionCache> position_cache_; |
| 141 | 141 |
| 142 DISALLOW_COPY_AND_ASSIGN(NetworkLocationProvider); | 142 DISALLOW_COPY_AND_ASSIGN(NetworkLocationProvider); |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 #endif // CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ | 145 #endif // CHROME_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ |
| OLD | NEW |