Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / chromeos / net / delay_network_call.h
blob57e53bbee055d2a651d17f7a1cf92b83977d38ab
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
3 // found in the LICENSE file.
5 // This file contains utility functions to wait for network state.
7 #ifndef CHROME_BROWSER_CHROMEOS_NET_DELAY_NETWORK_CALL_H_
8 #define CHROME_BROWSER_CHROMEOS_NET_DELAY_NETWORK_CALL_H_
10 namespace base {
12 template <typename T>
13 class Callback;
15 typedef Callback<void(void)> Closure;
17 class TimeDelta;
19 } // namespace base
21 namespace chromeos {
23 // Default delay to be used as an argument to DelayNetworkCall().
24 extern const unsigned kDefaultNetworkRetryDelayMS;
26 // Delay callback until the network is connected or while on a captive portal.
27 void DelayNetworkCall(base::TimeDelta retry, const base::Closure& callback);
29 } // namespace chromeos
31 #endif // CHROME_BROWSER_CHROMEOS_NET_DELAY_NETWORK_CALL_H_