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

Unified Diff: chrome/browser/task_management/sampling/shared_sampler.cc

Issue 2178733002: Task manager should support Idle Wakeups on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build error on win_clang. Created 4 years, 5 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
Index: chrome/browser/task_management/sampling/shared_sampler.cc
diff --git a/chrome/browser/task_management/sampling/shared_sampler.cc b/chrome/browser/task_management/sampling/shared_sampler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4023e51e388a3a9249e72ac9a0481794d22cecbd
--- /dev/null
+++ b/chrome/browser/task_management/sampling/shared_sampler.cc
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/task_management/sampling/shared_sampler.h"
+
+#include "content/public/browser/browser_thread.h"
+
+namespace task_management {
+
+#if !defined(OS_WIN)
ncarter (slow) 2016/07/28 21:37:26 Could we make this file be shared_sampler_posix.cc
stanisc 2016/08/01 22:34:26 Done.
+
+SharedSampler::SharedSampler(
+ const scoped_refptr<base::SequencedTaskRunner>& blocking_pool_runner) {}
+
+SharedSampler::~SharedSampler() {}
+
+int64_t SharedSampler::SupportsFlags() const {
+ return 0;
+}
+
+void SharedSampler::RegisterCallbacks(
+ base::ProcessId process_id,
+ const OnIdleWakeupsCallback& on_idle_wakeups) {}
+
+void SharedSampler::UnregisterCallbacks(base::ProcessId process_id) {}
+
+void SharedSampler::Refresh(base::ProcessId process_id,
+ int64_t refresh_flags) {}
+
+#endif // !defined(OS_WIN)
+
+} // namespace task_management

Powered by Google App Engine
This is Rietveld 408576698