| 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 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 virtual void StopProvider() OVERRIDE; | 76 virtual void StopProvider() OVERRIDE; |
| 77 virtual void GetPosition(Geoposition *position) OVERRIDE; | 77 virtual void GetPosition(Geoposition *position) OVERRIDE; |
| 78 virtual void RequestRefresh() OVERRIDE; | 78 virtual void RequestRefresh() OVERRIDE; |
| 79 virtual void OnPermissionGranted() OVERRIDE; | 79 virtual void OnPermissionGranted() OVERRIDE; |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 // Satisfies a position request from cache or network. | 82 // Satisfies a position request from cache or network. |
| 83 void RequestPosition(); | 83 void RequestPosition(); |
| 84 | 84 |
| 85 // Gets called when new wifi data is available. | 85 // Gets called when new wifi data is available. |
| 86 void OnWifiDataUpdate(WifiDataProviderManager* manager); | 86 void OnWifiDataUpdate(); |
| 87 | 87 |
| 88 // Internal helper used by OnWifiDataUpdate. | 88 // Internal helper used by OnWifiDataUpdate. |
| 89 void OnWifiDataUpdated(); | 89 void OnWifiDataUpdated(); |
| 90 | 90 |
| 91 bool IsStarted() const; | 91 bool IsStarted() const; |
| 92 | 92 |
| 93 void OnLocationResponse(const Geoposition& position, | 93 void OnLocationResponse(const Geoposition& position, |
| 94 bool server_error, | 94 bool server_error, |
| 95 const base::string16& access_token, | 95 const base::string16& access_token, |
| 96 const WifiData& wifi_data); | 96 const WifiData& wifi_data); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // over the platform-dependent implementations. | 136 // over the platform-dependent implementations. |
| 137 CONTENT_EXPORT LocationProviderBase* NewNetworkLocationProvider( | 137 CONTENT_EXPORT LocationProviderBase* NewNetworkLocationProvider( |
| 138 AccessTokenStore* access_token_store, | 138 AccessTokenStore* access_token_store, |
| 139 net::URLRequestContextGetter* context, | 139 net::URLRequestContextGetter* context, |
| 140 const GURL& url, | 140 const GURL& url, |
| 141 const base::string16& access_token); | 141 const base::string16& access_token); |
| 142 | 142 |
| 143 } // namespace content | 143 } // namespace content |
| 144 | 144 |
| 145 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ | 145 #endif // CONTENT_BROWSER_GEOLOCATION_NETWORK_LOCATION_PROVIDER_H_ |
| OLD | NEW |