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

Unified Diff: chrome/browser/download/download_file.h

Issue 287017: Disable system suspend while downloading files on win32.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: 'Fix Created 11 years, 2 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 | « AUTHORS ('k') | chrome/browser/download/download_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_file.h
===================================================================
--- chrome/browser/download/download_file.h (revision 29355)
+++ chrome/browser/download/download_file.h (working copy)
@@ -51,6 +51,7 @@
#include "base/lock.h"
#include "base/ref_counted.h"
#include "base/timer.h"
+#include "chrome/browser/power_save_blocker.h"
#include "googleurl/src/gurl.h"
namespace net {
@@ -153,6 +154,9 @@
// Whether the download is still receiving data.
bool in_progress_;
+ // RAII handle to keep the system from sleeping while we're downloading.
+ PowerSaveBlocker dont_sleep_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadFile);
};
« no previous file with comments | « AUTHORS ('k') | chrome/browser/download/download_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698