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

Side by Side Diff: content/browser/geolocation/wifi_polling_policy.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_POLLING_POLICY_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_POLLING_POLICY_H_
6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_POLLING_POLICY_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_WIFI_POLLING_POLICY_H_
7 7
8 #include "base/macros.h"
9
8 namespace content { 10 namespace content {
9 11
10 // Allows sharing and mocking of the update polling policy function. 12 // Allows sharing and mocking of the update polling policy function.
11 class WifiPollingPolicy { 13 class WifiPollingPolicy {
12 public: 14 public:
13 WifiPollingPolicy() {} 15 WifiPollingPolicy() {}
14 virtual ~WifiPollingPolicy() {} 16 virtual ~WifiPollingPolicy() {}
15 // Calculates the new polling interval for wiFi scans, given the previous 17 // Calculates the new polling interval for wiFi scans, given the previous
16 // interval and whether the last scan produced new results. 18 // interval and whether the last scan produced new results.
17 virtual void UpdatePollingInterval(bool scan_results_differ) = 0; 19 virtual void UpdatePollingInterval(bool scan_results_differ) = 0;
(...skipping 28 matching lines...) Expand all
46 int PollingInterval() override { return polling_interval_; } 48 int PollingInterval() override { return polling_interval_; }
47 int NoWifiInterval() override { return NO_WIFI_INTERVAL; } 49 int NoWifiInterval() override { return NO_WIFI_INTERVAL; }
48 50
49 private: 51 private:
50 int polling_interval_; 52 int polling_interval_;
51 }; 53 };
52 54
53 } // namespace content 55 } // namespace content
54 56
55 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_POLLING_POLICY_H_ 57 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_POLLING_POLICY_H_
OLDNEW
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_win.h ('k') | content/browser/gpu/browser_gpu_channel_host_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698