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

Side by Side Diff: chrome/browser/chromeos/net/delay_network_call.h

Issue 834073002: ChromeOS: Implement periodic timezone refresh on geolocation data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase. Created 5 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file contains utility functions to wait for network state. 5 // This file contains utility functions to wait for network state.
6 6
7 #ifndef CHROME_BROWSER_CHROMEOS_NET_DELAY_NETWORK_CALL_H_ 7 #ifndef CHROME_BROWSER_CHROMEOS_NET_DELAY_NETWORK_CALL_H_
8 #define CHROME_BROWSER_CHROMEOS_NET_DELAY_NETWORK_CALL_H_ 8 #define CHROME_BROWSER_CHROMEOS_NET_DELAY_NETWORK_CALL_H_
9 9
10 namespace base { 10 namespace base {
11 11
12 template <typename T> 12 template <typename T>
13 class Callback; 13 class Callback;
14 14
15 typedef Callback<void(void)> Closure; 15 typedef Callback<void(void)> Closure;
16 16
17 class TimeDelta; 17 class TimeDelta;
18 18
19 } // namespace base 19 } // namespace base
20 20
21 namespace chromeos { 21 namespace chromeos {
22 22
23 // Default delay to be used as an argument to DelayNetworkCall(). 23 // Default delay to be used as an argument to DelayNetworkCall().
24 extern const unsigned kDefaultNetworkRetryDelayMS; 24 extern const unsigned kDefaultNetworkRetryDelayMS;
25 25
26 // Delay callback until the network is connected or while on a captive portal. 26 // Delay callback until the network is connected or while on a captive portal.
27 void DelayNetworkCall(const base::Closure& callback, base::TimeDelta retry); 27 void DelayNetworkCall(base::TimeDelta retry, const base::Closure& callback);
28 28
29 } // namespace chromeos 29 } // namespace chromeos
30 30
31 #endif // CHROME_BROWSER_CHROMEOS_NET_DELAY_NETWORK_CALL_H_ 31 #endif // CHROME_BROWSER_CHROMEOS_NET_DELAY_NETWORK_CALL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chrome/browser/chromeos/net/delay_network_call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698