| 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 #include "content/browser/geolocation/network_location_provider.h" | 5 #include "content/browser/geolocation/network_location_provider.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/time.h" | 9 #include "base/time/time.h" |
| 10 #include "content/public/browser/access_token_store.h" | 10 #include "content/public/browser/access_token_store.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 namespace { | 13 namespace { |
| 14 // The maximum period of time we'll wait for a complete set of device data | 14 // The maximum period of time we'll wait for a complete set of device data |
| 15 // before sending the request. | 15 // before sending the request. |
| 16 const int kDataCompleteWaitSeconds = 2; | 16 const int kDataCompleteWaitSeconds = 2; |
| 17 } // namespace | 17 } // namespace |
| 18 | 18 |
| 19 // static | 19 // static |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 is_new_data_available_ = is_wifi_data_complete_; | 263 is_new_data_available_ = is_wifi_data_complete_; |
| 264 RequestRefresh(); | 264 RequestRefresh(); |
| 265 } | 265 } |
| 266 | 266 |
| 267 bool NetworkLocationProvider::IsStarted() const { | 267 bool NetworkLocationProvider::IsStarted() const { |
| 268 return wifi_data_provider_ != NULL; | 268 return wifi_data_provider_ != NULL; |
| 269 } | 269 } |
| 270 | 270 |
| 271 } // namespace content | 271 } // namespace content |
| OLD | NEW |