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

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

Issue 6591034: Move core pieces of geolocation from chrome to content.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix Linux build Created 9 years, 9 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Provides wifi scan API binding for chromeos, using proprietary APIs. 5 // Provides wifi scan API binding for chromeos, using proprietary APIs.
6 6
7 #include "chrome/browser/geolocation/wifi_data_provider_chromeos.h" 7 #include "content/browser/geolocation/wifi_data_provider_chromeos.h"
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/chromeos/cros/cros_library.h" 10 #include "chrome/browser/chromeos/cros/cros_library.h"
11 #include "chrome/browser/chromeos/cros/network_library.h" 11 #include "chrome/browser/chromeos/cros/network_library.h"
12 12
13 namespace { 13 namespace {
14 // The time periods between successive polls of the wifi data. 14 // The time periods between successive polls of the wifi data.
15 const int kDefaultPollingIntervalMilliseconds = 10 * 1000; // 10s 15 const int kDefaultPollingIntervalMilliseconds = 10 * 1000; // 10s
16 const int kNoChangePollingIntervalMilliseconds = 2 * 60 * 1000; // 2 mins 16 const int kNoChangePollingIntervalMilliseconds = 2 * 60 * 1000; // 2 mins
17 const int kTwoNoChangePollingIntervalMilliseconds = 10 * 60 * 1000; // 10 mins 17 const int kTwoNoChangePollingIntervalMilliseconds = 10 * 60 * 1000; // 10 mins
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 return NULL; 91 return NULL;
92 return NewWlanApi(cros_lib->GetNetworkLibrary()); 92 return NewWlanApi(cros_lib->GetNetworkLibrary());
93 } 93 }
94 94
95 PollingPolicyInterface* WifiDataProviderChromeOs::NewPollingPolicy() { 95 PollingPolicyInterface* WifiDataProviderChromeOs::NewPollingPolicy() {
96 return new GenericPollingPolicy<kDefaultPollingIntervalMilliseconds, 96 return new GenericPollingPolicy<kDefaultPollingIntervalMilliseconds,
97 kNoChangePollingIntervalMilliseconds, 97 kNoChangePollingIntervalMilliseconds,
98 kTwoNoChangePollingIntervalMilliseconds, 98 kTwoNoChangePollingIntervalMilliseconds,
99 kNoWifiPollingIntervalMilliseconds>; 99 kNoWifiPollingIntervalMilliseconds>;
100 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698