Chromium Code Reviews| 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 |