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

Unified Diff: components/scheduler/child/webthread_base.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/web_scheduler_impl.cc ('k') | components/scheduler/child/webthread_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/webthread_base.h
diff --git a/content/child/webthread_base.h b/components/scheduler/child/webthread_base.h
similarity index 85%
rename from content/child/webthread_base.h
rename to components/scheduler/child/webthread_base.h
index 5d6ebb9b0f05ff1855116f80870e2d8fda1ad696..c7f8656249373df76fc54484bab661d9cef229d5 100644
--- a/content/child/webthread_base.h
+++ b/components/scheduler/child/webthread_base.h
@@ -2,24 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_CHILD_WEBTHREAD_BASE_H_
-#define CONTENT_CHILD_WEBTHREAD_BASE_H_
+#ifndef COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_BASE_H_
+#define COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_BASE_H_
#include <map>
#include "base/memory/scoped_ptr.h"
#include "base/threading/thread.h"
-#include "content/common/content_export.h"
+#include "components/scheduler/scheduler_export.h"
#include "third_party/WebKit/public/platform/WebThread.h"
namespace blink {
class WebTraceLocation;
}
-namespace content {
+namespace scheduler {
class SingleThreadIdleTaskRunner;
-class CONTENT_EXPORT WebThreadBase : public blink::WebThread {
+class SCHEDULER_EXPORT WebThreadBase : public blink::WebThread {
public:
virtual ~WebThreadBase();
@@ -48,7 +48,7 @@ class CONTENT_EXPORT WebThreadBase : public blink::WebThread {
// Returns the base::Bind-compatible task runner for posting idle tasks to
// this thread. Can be called from any thread.
- virtual SingleThreadIdleTaskRunner* IdleTaskRunner() const = 0;
+ virtual scheduler::SingleThreadIdleTaskRunner* IdleTaskRunner() const = 0;
protected:
class TaskObserverAdapter;
@@ -75,6 +75,6 @@ class CONTENT_EXPORT WebThreadBase : public blink::WebThread {
TaskObserverMap task_observer_map_;
};
-} // namespace content
+} // namespace scheduler
-#endif // CONTENT_CHILD_WEBTHREAD_BASE_H_
+#endif // COMPONENTS_SCHEDULER_CHILD_WEBTHREAD_BASE_H_
« no previous file with comments | « components/scheduler/child/web_scheduler_impl.cc ('k') | components/scheduler/child/webthread_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698