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

Unified Diff: content/public/browser/power_save_blocker.h

Issue 2012853003: Reland of Pass SequencedTaskRunner to PowerSaveBlocker for ui/file ops (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SingleThreadTaskRunner for _x11 Created 4 years, 7 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/content_browser.gypi ('k') | content/public/browser/power_save_blocker_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/power_save_blocker.h
diff --git a/content/public/browser/power_save_blocker.h b/content/public/browser/power_save_blocker.h
index 7b553e7f54e6a27eca02c056b05890f49a763bc1..db3c0f25b70c71da8dd7a8866795bbea9da15e82 100644
--- a/content/public/browser/power_save_blocker.h
+++ b/content/public/browser/power_save_blocker.h
@@ -8,6 +8,9 @@
#include <memory>
#include <string>
+#include "base/memory/ref_counted.h"
+#include "base/sequenced_task_runner.h"
+#include "base/single_thread_task_runner.h"
#include "content/common/content_export.h"
namespace content {
@@ -48,10 +51,12 @@ class CONTENT_EXPORT PowerSaveBlocker {
// |reason| and |description| (a more-verbose, human-readable justification of
// the blocking) may be provided to the underlying system APIs on some
// platforms.
- static std::unique_ptr<PowerSaveBlocker> Create(
+ static std::unique_ptr<PowerSaveBlocker> CreateWithTaskRunners(
PowerSaveBlockerType type,
Reason reason,
- const std::string& description);
+ const std::string& description,
+ scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
};
} // namespace content
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/power_save_blocker_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698