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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/power_save_blocker_impl.cc
diff --git a/chrome/common/net/net_error_info.h b/content/browser/power_save_blocker_impl.cc
similarity index 33%
copy from chrome/common/net/net_error_info.h
copy to content/browser/power_save_blocker_impl.cc
index 9f8d08a1baabe1b741fa69d2761ec50ff59ae667..01007ad9afa38a0b00e93939c9da7b0b76653ce4 100644
--- a/chrome/common/net/net_error_info.h
+++ b/content/browser/power_save_blocker_impl.cc
@@ -2,19 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_COMMON_NET_NET_ERROR_INFO_H_
-#define CHROME_COMMON_NET_NET_ERROR_INFO_H_
+#include "content/browser/power_save_blocker_impl.h"
-namespace chrome_common_net {
+namespace content {
-enum DnsProbeResult {
- DNS_PROBE_UNKNOWN,
- DNS_PROBE_NO_INTERNET,
- DNS_PROBE_BAD_CONFIG,
- DNS_PROBE_NXDOMAIN,
- DNS_PROBE_MAX
-};
+PowerSaveBlocker::~PowerSaveBlocker() {}
-} // namespace chrome_common_net
+// static
+scoped_ptr<PowerSaveBlocker> PowerSaveBlocker::Create(
+ PowerSaveBlockerType type,
+ const std::string& reason) {
+ return scoped_ptr<PowerSaveBlocker>(new PowerSaveBlockerImpl(type, reason));
+}
-#endif // CHROME_COMMON_NET_NET_ERROR_INFO_H_
+} // namespace content
« 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