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

Unified Diff: components/scheduler/child/worker_scheduler_impl.h

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 8 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 | « components/scheduler/child/worker_scheduler.cc ('k') | components/scheduler/child/worker_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/worker_scheduler_impl.h
diff --git a/content/child/scheduler/worker_scheduler_impl.h b/components/scheduler/child/worker_scheduler_impl.h
similarity index 77%
rename from content/child/scheduler/worker_scheduler_impl.h
rename to components/scheduler/child/worker_scheduler_impl.h
index 06e9d586aa1e31e13f7969d8d6726372cd2a11ab..989d9cfff6406be3fa5f819cf2d9082da3bb81a2 100644
--- a/content/child/scheduler/worker_scheduler_impl.h
+++ b/components/scheduler/child/worker_scheduler_impl.h
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_CHILD_SCHEDULER_WORKER_SCHEDULER_IMPL_H_
-#define CONTENT_CHILD_SCHEDULER_WORKER_SCHEDULER_IMPL_H_
+#ifndef COMPONENTS_SCHEDULER_CHILD_WORKER_SCHEDULER_IMPL_H_
+#define COMPONENTS_SCHEDULER_CHILD_WORKER_SCHEDULER_IMPL_H_
-#include "content/child/scheduler/worker_scheduler.h"
-#include "content/child/scheduler/scheduler_helper.h"
+#include "components/scheduler/child/scheduler_helper.h"
+#include "components/scheduler/child/worker_scheduler.h"
+#include "components/scheduler/scheduler_export.h"
namespace base {
namespace trace_event {
@@ -14,11 +15,11 @@ class ConvertableToTraceFormat;
}
}
-namespace content {
+namespace scheduler {
class NestableSingleThreadTaskRunner;
-class CONTENT_EXPORT WorkerSchedulerImpl
+class SCHEDULER_EXPORT WorkerSchedulerImpl
: public WorkerScheduler,
public SchedulerHelper::SchedulerHelperDelegate {
public:
@@ -38,7 +39,6 @@ class CONTENT_EXPORT WorkerSchedulerImpl
void Shutdown() override;
SchedulerHelper* GetSchedulerHelperForTesting();
- void SetWorkBatchSizeForTesting(size_t work_batch_size);
base::TimeTicks CurrentIdleTaskDeadlineForTesting() const;
protected:
@@ -57,6 +57,6 @@ class CONTENT_EXPORT WorkerSchedulerImpl
DISALLOW_COPY_AND_ASSIGN(WorkerSchedulerImpl);
};
-} // namespace content
+} // namespace scheduler
-#endif // CONTENT_CHILD_SCHEDULER_WORKER_SCHEDULER_IMPL_H_
+#endif // COMPONENTS_SCHEDULER_CHILD_WORKER_SCHEDULER_IMPL_H_
« no previous file with comments | « components/scheduler/child/worker_scheduler.cc ('k') | components/scheduler/child/worker_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698