Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: webkit/tools/test_shell/simple_file_system.cc

Issue 7470037: [Refactor] to rename and re-layer the file_util stack layers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed for ChromeOS again. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/WebURL.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/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_file_util.h"
25 #include "webkit/fileapi/file_system_operation.h" 24 #include "webkit/fileapi/file_system_operation.h"
26 #include "webkit/fileapi/file_system_path_manager.h" 25 #include "webkit/fileapi/file_system_path_manager.h"
27 #include "webkit/fileapi/file_system_types.h" 26 #include "webkit/fileapi/file_system_types.h"
27 #include "webkit/fileapi/fileapi_file_util.h"
ericu 2011/08/22 17:59:37 Not needed.
Dai Mikurube (NOT FULLTIME) 2011/08/24 11:57:30 Done.
28 #include "webkit/glue/webkit_glue.h" 28 #include "webkit/glue/webkit_glue.h"
29 #include "webkit/tools/test_shell/simple_file_writer.h" 29 #include "webkit/tools/test_shell/simple_file_writer.h"
30 30
31 using base::WeakPtr; 31 using base::WeakPtr;
32 32
33 using WebKit::WebFileInfo; 33 using WebKit::WebFileInfo;
34 using WebKit::WebFileSystem; 34 using WebKit::WebFileSystem;
35 using WebKit::WebFileSystemCallbacks; 35 using WebKit::WebFileSystemCallbacks;
36 using WebKit::WebFileSystemEntry; 36 using WebKit::WebFileSystemEntry;
37 using WebKit::WebFileWriter; 37 using WebKit::WebFileWriter;
38 using WebKit::WebFileWriterClient; 38 using WebKit::WebFileWriterClient;
39 using WebKit::WebFrame; 39 using WebKit::WebFrame;
40 using WebKit::WebSecurityOrigin; 40 using WebKit::WebSecurityOrigin;
41 using WebKit::WebString; 41 using WebKit::WebString;
42 using WebKit::WebURL; 42 using WebKit::WebURL;
43 using WebKit::WebVector; 43 using WebKit::WebVector;
44 44
45 using fileapi::FileApiFileUtil;
ericu 2011/08/22 17:59:37 Not needed.
Dai Mikurube (NOT FULLTIME) 2011/08/24 11:57:30 Done.
45 using fileapi::FileSystemCallbackDispatcher; 46 using fileapi::FileSystemCallbackDispatcher;
46 using fileapi::FileSystemContext; 47 using fileapi::FileSystemContext;
47 using fileapi::FileSystemFileUtil;
48 using fileapi::FileSystemOperation; 48 using fileapi::FileSystemOperation;
49 49
50 namespace { 50 namespace {
51 51
52 class SimpleFileSystemCallbackDispatcher 52 class SimpleFileSystemCallbackDispatcher
53 : public FileSystemCallbackDispatcher { 53 : public FileSystemCallbackDispatcher {
54 public: 54 public:
55 SimpleFileSystemCallbackDispatcher( 55 SimpleFileSystemCallbackDispatcher(
56 const WeakPtr<SimpleFileSystem>& file_system, 56 const WeakPtr<SimpleFileSystem>& file_system,
57 WebFileSystemCallbacks* callbacks) 57 WebFileSystemCallbacks* callbacks)
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 FileSystemOperation* SimpleFileSystem::GetNewOperation( 296 FileSystemOperation* SimpleFileSystem::GetNewOperation(
297 WebFileSystemCallbacks* callbacks) { 297 WebFileSystemCallbacks* callbacks) {
298 SimpleFileSystemCallbackDispatcher* dispatcher = 298 SimpleFileSystemCallbackDispatcher* dispatcher =
299 new SimpleFileSystemCallbackDispatcher(AsWeakPtr(), callbacks); 299 new SimpleFileSystemCallbackDispatcher(AsWeakPtr(), callbacks);
300 FileSystemOperation* operation = new FileSystemOperation( 300 FileSystemOperation* operation = new FileSystemOperation(
301 dispatcher, base::MessageLoopProxy::current(), 301 dispatcher, base::MessageLoopProxy::current(),
302 file_system_context_.get(), NULL); 302 file_system_context_.get(), NULL);
303 return operation; 303 return operation;
304 } 304 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698