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

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

Issue 16408017: Use a direct include of utf_string_conversions.h in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
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 // For OSX 10.5 we use the system API function WirelessScanSplit. This function 5 // For OSX 10.5 we use the system API function WirelessScanSplit. This function
6 // is not documented or included in the SDK, so we use a reverse-engineered 6 // is not documented or included in the SDK, so we use a reverse-engineered
7 // header, osx_wifi_.h. This file is taken from the iStumbler project 7 // header, osx_wifi_.h. This file is taken from the iStumbler project
8 // (http://www.istumbler.net). 8 // (http://www.istumbler.net).
9 9
10 #include "content/browser/geolocation/wifi_data_provider_mac.h" 10 #include "content/browser/geolocation/wifi_data_provider_mac.h"
11 11
12 #include <dlfcn.h> 12 #include <dlfcn.h>
13 #include <stdio.h> 13 #include <stdio.h>
14 14
15 #include "base/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "content/browser/geolocation/osx_wifi.h" 16 #include "content/browser/geolocation/osx_wifi.h"
17 #include "content/browser/geolocation/wifi_data_provider_common.h" 17 #include "content/browser/geolocation/wifi_data_provider_common.h"
18 18
19 namespace content { 19 namespace content {
20 namespace { 20 namespace {
21 // The time periods, in milliseconds, between successive polls of the wifi data. 21 // The time periods, in milliseconds, between successive polls of the wifi data.
22 const int kDefaultPollingInterval = 120000; // 2 mins 22 const int kDefaultPollingInterval = 120000; // 2 mins
23 const int kNoChangePollingInterval = 300000; // 5 mins 23 const int kNoChangePollingInterval = 300000; // 5 mins
24 const int kTwoNoChangePollingInterval = 600000; // 10 mins 24 const int kTwoNoChangePollingInterval = 600000; // 10 mins
25 const int kNoWifiPollingIntervalMilliseconds = 20 * 1000; // 20s 25 const int kNoWifiPollingIntervalMilliseconds = 20 * 1000; // 20s
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 } 186 }
187 187
188 PollingPolicyInterface* MacWifiDataProvider::NewPollingPolicy() { 188 PollingPolicyInterface* MacWifiDataProvider::NewPollingPolicy() {
189 return new GenericPollingPolicy<kDefaultPollingInterval, 189 return new GenericPollingPolicy<kDefaultPollingInterval,
190 kNoChangePollingInterval, 190 kNoChangePollingInterval,
191 kTwoNoChangePollingInterval, 191 kTwoNoChangePollingInterval,
192 kNoWifiPollingIntervalMilliseconds>; 192 kNoWifiPollingIntervalMilliseconds>;
193 } 193 }
194 194
195 } // namespace content 195 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698