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

Side by Side Diff: content/child/fileapi/file_system_dispatcher.cc

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/child/fileapi/webfilesystem_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/file_system_dispatcher.h" 5 #include "content/child/fileapi/file_system_dispatcher.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/process/process.h" 9 #include "base/process/process.h"
11 #include "content/child/child_thread_impl.h" 10 #include "content/child/child_thread_impl.h"
12 #include "content/common/fileapi/file_system_messages.h" 11 #include "content/common/fileapi/file_system_messages.h"
13 #include "storage/common/fileapi/file_system_info.h" 12 #include "storage/common/fileapi/file_system_info.h"
14 13
15 namespace content { 14 namespace content {
16 15
17 class FileSystemDispatcher::CallbackDispatcher { 16 class FileSystemDispatcher::CallbackDispatcher {
18 public: 17 public:
19 typedef CallbackDispatcher self; 18 typedef CallbackDispatcher self;
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 void FileSystemDispatcher::OnDidWrite( 394 void FileSystemDispatcher::OnDidWrite(
396 int request_id, int64 bytes, bool complete) { 395 int request_id, int64 bytes, bool complete) {
397 CallbackDispatcher* dispatcher = dispatchers_.Lookup(request_id); 396 CallbackDispatcher* dispatcher = dispatchers_.Lookup(request_id);
398 DCHECK(dispatcher); 397 DCHECK(dispatcher);
399 dispatcher->DidWrite(bytes, complete); 398 dispatcher->DidWrite(bytes, complete);
400 if (complete) 399 if (complete)
401 dispatchers_.Remove(request_id); 400 dispatchers_.Remove(request_id);
402 } 401 }
403 402
404 } // namespace content 403 } // namespace content
OLDNEW
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/child/fileapi/webfilesystem_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698