OLD | NEW |
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 "content/common/child_thread.h" | 8 #include "content/child/child_thread.h" |
9 #include "content/common/fileapi/file_system_dispatcher.h" | 9 #include "content/child/fileapi/file_system_dispatcher.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 inline FileSystemDispatcher* GetFileSystemDispatcher() { | 15 inline FileSystemDispatcher* GetFileSystemDispatcher() { |
16 return ChildThread::current()->file_system_dispatcher(); | 16 return ChildThread::current()->file_system_dispatcher(); |
17 } | 17 } |
18 | 18 |
19 } // namespace | 19 } // namespace |
(...skipping 22 matching lines...) Expand all Loading... |
42 base::Bind(&WebFileWriterImpl::DidFinish, AsWeakPtr())); | 42 base::Bind(&WebFileWriterImpl::DidFinish, AsWeakPtr())); |
43 } | 43 } |
44 | 44 |
45 void WebFileWriterImpl::DoCancel() { | 45 void WebFileWriterImpl::DoCancel() { |
46 GetFileSystemDispatcher()->Cancel( | 46 GetFileSystemDispatcher()->Cancel( |
47 request_id_, | 47 request_id_, |
48 base::Bind(&WebFileWriterImpl::DidFinish, AsWeakPtr())); | 48 base::Bind(&WebFileWriterImpl::DidFinish, AsWeakPtr())); |
49 } | 49 } |
50 | 50 |
51 } // namespace content | 51 } // namespace content |
OLD | NEW |