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

Unified Diff: content/child/worker_task_runner.cc

Issue 165373004: Move WorkerTaskRunner to content/child. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/child/worker_task_runner.h ('k') | content/child/worker_task_runner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/worker_task_runner.cc
diff --git a/webkit/child/worker_task_runner.cc b/content/child/worker_task_runner.cc
similarity index 96%
rename from webkit/child/worker_task_runner.cc
rename to content/child/worker_task_runner.cc
index c0d43598f6f7875e141de1ffba7752cb8fe994a8..d9b3f3535a36ede1620260b4ca7ca479e353519d 100644
--- a/webkit/child/worker_task_runner.cc
+++ b/content/child/worker_task_runner.cc
@@ -2,15 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "content/child/worker_task_runner.h"
+
#include "base/callback.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
-#include "webkit/child/worker_task_runner.h"
using blink::WebWorkerRunLoop;
+namespace content {
+
namespace {
class RunClosureTask : public WebWorkerRunLoop::Task {
@@ -24,9 +27,7 @@ class RunClosureTask : public WebWorkerRunLoop::Task {
base::Closure task_;
};
-} // unnamed namespace
-
-namespace webkit_glue {
+} // namespace
struct WorkerTaskRunner::ThreadLocalState {
ThreadLocalState(int id, const WebWorkerRunLoop& loop)
@@ -108,4 +109,4 @@ void WorkerTaskRunner::OnWorkerRunLoopStopped(const WebWorkerRunLoop& loop) {
current_tls_.Set(NULL);
}
-} // namespace webkit_glue
+} // namespace content
« no previous file with comments | « content/child/worker_task_runner.h ('k') | content/child/worker_task_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698