| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ |
| 6 #define CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
| 17 #include "content/browser/geolocation/device_data_provider.h" | |
| 18 #include "content/browser/geolocation/location_provider.h" | 17 #include "content/browser/geolocation/location_provider.h" |
| 19 #include "content/browser/geolocation/network_location_request.h" | 18 #include "content/browser/geolocation/network_location_request.h" |
| 19 #include "content/browser/geolocation/wifi_data_provider.h" |
| 20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
| 21 #include "content/public/common/geoposition.h" | 21 #include "content/public/common/geoposition.h" |
| 22 | 22 |
| 23 namespace content { | 23 namespace content { |
| 24 class AccessTokenStore; | 24 class AccessTokenStore; |
| 25 } | 25 } |
| 26 | 26 |
| 27 class NetworkLocationProvider | 27 class NetworkLocationProvider |
| 28 : public LocationProviderBase, | 28 : public LocationProviderBase, |
| 29 public WifiDataProvider::ListenerInterface, | 29 public WifiDataProvider::ListenerInterface, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 scoped_ptr<NetworkLocationRequest> request_; | 125 scoped_ptr<NetworkLocationRequest> request_; |
| 126 | 126 |
| 127 base::WeakPtrFactory<NetworkLocationProvider> weak_factory_; | 127 base::WeakPtrFactory<NetworkLocationProvider> weak_factory_; |
| 128 // The cache of positions. | 128 // The cache of positions. |
| 129 scoped_ptr<PositionCache> position_cache_; | 129 scoped_ptr<PositionCache> position_cache_; |
| 130 | 130 |
| 131 DISALLOW_COPY_AND_ASSIGN(NetworkLocationProvider); | 131 DISALLOW_COPY_AND_ASSIGN(NetworkLocationProvider); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ | 134 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ |
| OLD | NEW |