OLD | NEW |
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/common/fileapi/webfilesystem_impl.h" | 5 #include "content/common/fileapi/webfilesystem_impl.h" |
6 | 6 |
7 #include "content/common/child_thread.h" | 7 #include "content/common/child_thread.h" |
8 #include "content/common/fileapi/file_system_dispatcher.h" | 8 #include "content/common/fileapi/file_system_dispatcher.h" |
9 #include "content/common/fileapi/webfilesystem_callback_dispatcher.h" | 9 #include "content/common/fileapi/webfilesystem_callback_dispatcher.h" |
10 #include "content/common/fileapi/webfilewriter_impl.h" | 10 #include "content/common/fileapi/webfilewriter_impl.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.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/Source/WebKit/chromium/public/platform/WebString.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
15 #include "webkit/glue/webkit_glue.h" | 15 #include "webkit/glue/webkit_glue.h" |
16 | 16 |
17 using WebKit::WebFileInfo; | 17 using WebKit::WebFileInfo; |
18 using WebKit::WebFileSystemCallbacks; | 18 using WebKit::WebFileSystemCallbacks; |
19 using WebKit::WebFileSystemEntry; | 19 using WebKit::WebFileSystemEntry; |
20 using WebKit::WebString; | 20 using WebKit::WebString; |
21 using WebKit::WebURL; | 21 using WebKit::WebURL; |
22 using WebKit::WebVector; | 22 using WebKit::WebVector; |
23 | 23 |
| 24 namespace content { |
| 25 |
24 WebFileSystemImpl::WebFileSystemImpl() { | 26 WebFileSystemImpl::WebFileSystemImpl() { |
25 } | 27 } |
26 | 28 |
27 void WebFileSystemImpl::move(const WebURL& src_path, | 29 void WebFileSystemImpl::move(const WebURL& src_path, |
28 const WebURL& dest_path, | 30 const WebURL& dest_path, |
29 WebFileSystemCallbacks* callbacks) { | 31 WebFileSystemCallbacks* callbacks) { |
30 FileSystemDispatcher* dispatcher = | 32 FileSystemDispatcher* dispatcher = |
31 ChildThread::current()->file_system_dispatcher(); | 33 ChildThread::current()->file_system_dispatcher(); |
32 dispatcher->Move(GURL(src_path), | 34 dispatcher->Move(GURL(src_path), |
33 GURL(dest_path), | 35 GURL(dest_path), |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 void WebFileSystemImpl::createSnapshotFileAndReadMetadata( | 122 void WebFileSystemImpl::createSnapshotFileAndReadMetadata( |
121 const WebKit::WebURL& blobURL, | 123 const WebKit::WebURL& blobURL, |
122 const WebKit::WebURL& path, | 124 const WebKit::WebURL& path, |
123 WebKit::WebFileSystemCallbacks* callbacks) { | 125 WebKit::WebFileSystemCallbacks* callbacks) { |
124 FileSystemDispatcher* dispatcher = | 126 FileSystemDispatcher* dispatcher = |
125 ChildThread::current()->file_system_dispatcher(); | 127 ChildThread::current()->file_system_dispatcher(); |
126 dispatcher->CreateSnapshotFile( | 128 dispatcher->CreateSnapshotFile( |
127 GURL(blobURL), GURL(path), | 129 GURL(blobURL), GURL(path), |
128 new WebFileSystemCallbackDispatcher(callbacks)); | 130 new WebFileSystemCallbackDispatcher(callbacks)); |
129 } | 131 } |
| 132 |
| 133 } // namespace content |
OLD | NEW |