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

Side by Side Diff: content/child/fileapi/webfilewriter_impl.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/fileapi/webfilewriter_impl.h" 5 #include "content/child/fileapi/webfilewriter_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "content/child/child_thread.h" 10 #include "content/child/child_thread.h"
11 #include "content/child/fileapi/file_system_dispatcher.h" 11 #include "content/child/fileapi/file_system_dispatcher.h"
12 #include "webkit/child/worker_task_runner.h" 12 #include "content/child/worker_task_runner.h"
13
14 using webkit_glue::WorkerTaskRunner;
15 13
16 namespace content { 14 namespace content {
17 15
18 namespace { 16 namespace {
19 17
20 FileSystemDispatcher* GetFileSystemDispatcher() { 18 FileSystemDispatcher* GetFileSystemDispatcher() {
21 return ChildThread::current() ? 19 return ChildThread::current() ?
22 ChildThread::current()->file_system_dispatcher() : NULL; 20 ChildThread::current()->file_system_dispatcher() : NULL;
23 } 21 }
24 22
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 DCHECK(!bridge_->waitable_event()); 155 DCHECK(!bridge_->waitable_event());
158 closure.Run(); 156 closure.Run();
159 return; 157 return;
160 } 158 }
161 main_thread_loop_->PostTask(FROM_HERE, closure); 159 main_thread_loop_->PostTask(FROM_HERE, closure);
162 if (bridge_->waitable_event()) 160 if (bridge_->waitable_event())
163 bridge_->WaitAndRun(); 161 bridge_->WaitAndRun();
164 } 162 }
165 163
166 } // namespace content 164 } // namespace content
OLDNEW
« no previous file with comments | « content/child/fileapi/webfilesystem_impl.cc ('k') | content/child/indexed_db/indexed_db_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698