Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Side by Side Diff: content/browser/geolocation/network_location_provider.cc

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "device/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/threading/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 "device/geolocation/access_token_store.h" 13 #include "content/public/browser/access_token_store.h"
14 14
15 namespace device { 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
22 // static 22 // static
23 const size_t NetworkLocationProvider::PositionCache::kMaximumSize = 10; 23 const size_t NetworkLocationProvider::PositionCache::kMaximumSize = 10;
24 24
25 NetworkLocationProvider::PositionCache::PositionCache() {} 25 NetworkLocationProvider::PositionCache::PositionCache() {}
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 "with new data. Wifi APs: " 263 "with new data. Wifi APs: "
264 << wifi_data_.access_point_data.size(); 264 << wifi_data_.access_point_data.size();
265 } 265 }
266 request_->MakeRequest(access_token_, wifi_data_, wifi_timestamp_); 266 request_->MakeRequest(access_token_, wifi_data_, wifi_timestamp_);
267 } 267 }
268 268
269 bool NetworkLocationProvider::IsStarted() const { 269 bool NetworkLocationProvider::IsStarted() const {
270 return wifi_data_provider_manager_ != nullptr; 270 return wifi_data_provider_manager_ != nullptr;
271 } 271 }
272 272
273 } // namespace device 273 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698