| 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" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 void WebFileSystemImpl::createSnapshotFileAndReadMetadata( | 122 void WebFileSystemImpl::createSnapshotFileAndReadMetadata( |
| 123 const WebKit::WebURL& path, | 123 const WebKit::WebURL& path, |
| 124 WebKit::WebFileSystemCallbacks* callbacks) { | 124 WebKit::WebFileSystemCallbacks* callbacks) { |
| 125 FileSystemDispatcher* dispatcher = | 125 FileSystemDispatcher* dispatcher = |
| 126 ChildThread::current()->file_system_dispatcher(); | 126 ChildThread::current()->file_system_dispatcher(); |
| 127 dispatcher->CreateSnapshotFile( | 127 dispatcher->CreateSnapshotFile( |
| 128 GURL(path), new WebFileSystemCallbackDispatcher(callbacks)); | 128 GURL(path), new WebFileSystemCallbackDispatcher(callbacks)); |
| 129 } | 129 } |
| 130 | 130 |
| 131 // DEPRECATED | |
| 132 void WebFileSystemImpl::createSnapshotFileAndReadMetadata( | |
| 133 const WebKit::WebURL& blobURL, | |
| 134 const WebKit::WebURL& path, | |
| 135 WebKit::WebFileSystemCallbacks* callbacks) { | |
| 136 FileSystemDispatcher* dispatcher = | |
| 137 ChildThread::current()->file_system_dispatcher(); | |
| 138 dispatcher->CreateSnapshotFile_Deprecated( | |
| 139 GURL(blobURL), GURL(path), | |
| 140 new WebFileSystemCallbackDispatcher(callbacks)); | |
| 141 } | |
| 142 | |
| 143 } // namespace content | 131 } // namespace content |
| OLD | NEW |