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

Side by Side Diff: content/browser/power_save_blocker_impl.cc

Issue 11784016: chromeos: Block system suspend while uploading files to Drive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/power_save_blocker_impl.h ('k') | content/browser/power_save_blocker_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « content/browser/power_save_blocker_impl.h ('k') | content/browser/power_save_blocker_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698