OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_COMMON_NET_NET_ERROR_INFO_H_ | 5 #include "content/browser/power_save_blocker_impl.h" |
6 #define CHROME_COMMON_NET_NET_ERROR_INFO_H_ | |
7 | 6 |
8 namespace chrome_common_net { | 7 namespace content { |
9 | 8 |
10 enum DnsProbeResult { | 9 PowerSaveBlocker::~PowerSaveBlocker() {} |
11 DNS_PROBE_UNKNOWN, | |
12 DNS_PROBE_NO_INTERNET, | |
13 DNS_PROBE_BAD_CONFIG, | |
14 DNS_PROBE_NXDOMAIN, | |
15 DNS_PROBE_MAX | |
16 }; | |
17 | 10 |
18 } // namespace chrome_common_net | 11 // static |
| 12 scoped_ptr<PowerSaveBlocker> PowerSaveBlocker::Create( |
| 13 PowerSaveBlockerType type, |
| 14 const std::string& reason) { |
| 15 return scoped_ptr<PowerSaveBlocker>(new PowerSaveBlockerImpl(type, reason)); |
| 16 } |
19 | 17 |
20 #endif // CHROME_COMMON_NET_NET_ERROR_INFO_H_ | 18 } // namespace content |
OLD | NEW |