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 "webkit/tools/test_shell/simple_file_system.h" | 5 #include "webkit/tools/test_shell/simple_file_system.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/memory/scoped_callback_factory.h" | 8 #include "base/memory/scoped_callback_factory.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop_proxy.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileInfo.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemEntry.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemEntry.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
22 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 22 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
23 #include "webkit/fileapi/file_system_context.h" | 23 #include "webkit/fileapi/file_system_context.h" |
24 #include "webkit/fileapi/file_system_operation.h" | 24 #include "webkit/fileapi/file_system_operation.h" |
25 #include "webkit/fileapi/file_system_path_manager.h" | 25 #include "webkit/fileapi/file_system_path_manager.h" |
26 #include "webkit/fileapi/file_system_types.h" | 26 #include "webkit/fileapi/file_system_types.h" |
27 #include "webkit/glue/webkit_glue.h" | 27 #include "webkit/glue/webkit_glue.h" |
28 #include "webkit/tools/test_shell/simple_file_writer.h" | 28 #include "webkit/tools/test_shell/simple_file_writer.h" |
29 | 29 |
30 using base::WeakPtr; | 30 using base::WeakPtr; |
31 | 31 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 227 |
228 FileSystemOperation* SimpleFileSystem::GetNewOperation( | 228 FileSystemOperation* SimpleFileSystem::GetNewOperation( |
229 WebFileSystemCallbacks* callbacks) { | 229 WebFileSystemCallbacks* callbacks) { |
230 SimpleFileSystemCallbackDispatcher* dispatcher = | 230 SimpleFileSystemCallbackDispatcher* dispatcher = |
231 new SimpleFileSystemCallbackDispatcher(AsWeakPtr(), callbacks); | 231 new SimpleFileSystemCallbackDispatcher(AsWeakPtr(), callbacks); |
232 FileSystemOperation* operation = new FileSystemOperation( | 232 FileSystemOperation* operation = new FileSystemOperation( |
233 dispatcher, base::MessageLoopProxy::current(), | 233 dispatcher, base::MessageLoopProxy::current(), |
234 file_system_context_.get()); | 234 file_system_context_.get()); |
235 return operation; | 235 return operation; |
236 } | 236 } |
OLD | NEW |