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/location.h" | 8 #include "base/location.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "content/public/browser/access_token_store.h" | 13 #include "content/public/browser/access_token_store.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 namespace { | 16 namespace { |
17 // The maximum period of time we'll wait for a complete set of wifi data | 17 // The maximum period of time we'll wait for a complete set of wifi data |
18 // before sending the request. | 18 // before sending the request. |
19 const int kDataCompleteWaitSeconds = 2; | 19 const int kDataCompleteWaitSeconds = 2; |
20 } // namespace | 20 } // namespace |
21 | 21 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 << wifi_data_.access_point_data.size(); | 265 << wifi_data_.access_point_data.size(); |
266 } | 266 } |
267 request_->MakeRequest(access_token_, wifi_data_, wifi_timestamp_); | 267 request_->MakeRequest(access_token_, wifi_data_, wifi_timestamp_); |
268 } | 268 } |
269 | 269 |
270 bool NetworkLocationProvider::IsStarted() const { | 270 bool NetworkLocationProvider::IsStarted() const { |
271 return wifi_data_provider_manager_ != NULL; | 271 return wifi_data_provider_manager_ != NULL; |
272 } | 272 } |
273 | 273 |
274 } // namespace content | 274 } // namespace content |
OLD | NEW |