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/webfilesystem_impl.h" | 5 #include "content/child/fileapi/webfilesystem_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "content/child/child_thread.h" |
| 9 #include "content/child/fileapi/file_system_dispatcher.h" |
8 #include "content/child/fileapi/webfilesystem_callback_adapters.h" | 10 #include "content/child/fileapi/webfilesystem_callback_adapters.h" |
9 #include "content/child/fileapi/webfilewriter_impl.h" | 11 #include "content/child/fileapi/webfilewriter_impl.h" |
10 #include "content/common/child_thread.h" | |
11 #include "content/common/fileapi/file_system_dispatcher.h" | |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" |
13 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 13 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
14 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
15 #include "third_party/WebKit/public/platform/WebURL.h" | 15 #include "third_party/WebKit/public/platform/WebURL.h" |
16 #include "webkit/glue/webkit_glue.h" | 16 #include "webkit/glue/webkit_glue.h" |
17 | 17 |
18 using WebKit::WebFileInfo; | 18 using WebKit::WebFileInfo; |
19 using WebKit::WebFileSystemCallbacks; | 19 using WebKit::WebFileSystemCallbacks; |
20 using WebKit::WebFileSystemEntry; | 20 using WebKit::WebFileSystemEntry; |
21 using WebKit::WebString; | 21 using WebKit::WebString; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 WebKit::WebFileSystemCallbacks* callbacks) { | 135 WebKit::WebFileSystemCallbacks* callbacks) { |
136 FileSystemDispatcher* dispatcher = | 136 FileSystemDispatcher* dispatcher = |
137 ChildThread::current()->file_system_dispatcher(); | 137 ChildThread::current()->file_system_dispatcher(); |
138 dispatcher->CreateSnapshotFile( | 138 dispatcher->CreateSnapshotFile( |
139 GURL(path), | 139 GURL(path), |
140 base::Bind(&CreateSnapshotFileCallbackAdapter, callbacks), | 140 base::Bind(&CreateSnapshotFileCallbackAdapter, callbacks), |
141 base::Bind(&FileStatusCallbackAdapter, callbacks)); | 141 base::Bind(&FileStatusCallbackAdapter, callbacks)); |
142 } | 142 } |
143 | 143 |
144 } // namespace content | 144 } // namespace content |
OLD | NEW |