| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/file_system/webfilesystem_impl.h" | 5 #include "content/common/file_system/webfilesystem_impl.h" |
| 6 | 6 |
| 7 #include "content/common/child_thread.h" | 7 #include "content/common/child_thread.h" |
| 8 #include "content/common/file_system/file_system_dispatcher.h" | 8 #include "content/common/file_system/file_system_dispatcher.h" |
| 9 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" | 9 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" |
| 10 #include "content/common/file_system/webfilewriter_impl.h" | 10 #include "content/common/file_system/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/WebString.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/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 WebFileSystemImpl::WebFileSystemImpl() { | 24 WebFileSystemImpl::WebFileSystemImpl() { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 FileSystemDispatcher* dispatcher = | 109 FileSystemDispatcher* dispatcher = |
| 110 ChildThread::current()->file_system_dispatcher(); | 110 ChildThread::current()->file_system_dispatcher(); |
| 111 dispatcher->ReadDirectory(GURL(path), | 111 dispatcher->ReadDirectory(GURL(path), |
| 112 new WebFileSystemCallbackDispatcher(callbacks)); | 112 new WebFileSystemCallbackDispatcher(callbacks)); |
| 113 } | 113 } |
| 114 | 114 |
| 115 WebKit::WebFileWriter* WebFileSystemImpl::createFileWriter( | 115 WebKit::WebFileWriter* WebFileSystemImpl::createFileWriter( |
| 116 const WebURL& path, WebKit::WebFileWriterClient* client) { | 116 const WebURL& path, WebKit::WebFileWriterClient* client) { |
| 117 return new WebFileWriterImpl(GURL(path), client); | 117 return new WebFileWriterImpl(GURL(path), client); |
| 118 } | 118 } |
| OLD | NEW |