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

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: Rebased on the svn tree. Created 9 years, 3 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
« no previous file with comments | « webkit/fileapi/webkit_fileapi.gypi ('k') | webkit/tools/test_shell/simple_file_writer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
28 #include "webkit/glue/webkit_glue.h" 27 #include "webkit/glue/webkit_glue.h"
29 #include "webkit/tools/test_shell/simple_file_writer.h" 28 #include "webkit/tools/test_shell/simple_file_writer.h"
30 29
31 using base::WeakPtr; 30 using base::WeakPtr;
32 31
33 using WebKit::WebFileInfo; 32 using WebKit::WebFileInfo;
34 using WebKit::WebFileSystem; 33 using WebKit::WebFileSystem;
35 using WebKit::WebFileSystemCallbacks; 34 using WebKit::WebFileSystemCallbacks;
36 using WebKit::WebFileSystemEntry; 35 using WebKit::WebFileSystemEntry;
37 using WebKit::WebFileWriter; 36 using WebKit::WebFileWriter;
38 using WebKit::WebFileWriterClient; 37 using WebKit::WebFileWriterClient;
39 using WebKit::WebFrame; 38 using WebKit::WebFrame;
40 using WebKit::WebSecurityOrigin; 39 using WebKit::WebSecurityOrigin;
41 using WebKit::WebString; 40 using WebKit::WebString;
42 using WebKit::WebURL; 41 using WebKit::WebURL;
43 using WebKit::WebVector; 42 using WebKit::WebVector;
44 43
45 using fileapi::FileSystemCallbackDispatcher; 44 using fileapi::FileSystemCallbackDispatcher;
46 using fileapi::FileSystemContext; 45 using fileapi::FileSystemContext;
47 using fileapi::FileSystemFileUtil;
48 using fileapi::FileSystemOperation; 46 using fileapi::FileSystemOperation;
49 47
50 namespace { 48 namespace {
51 49
52 class SimpleFileSystemCallbackDispatcher 50 class SimpleFileSystemCallbackDispatcher
53 : public FileSystemCallbackDispatcher { 51 : public FileSystemCallbackDispatcher {
54 public: 52 public:
55 SimpleFileSystemCallbackDispatcher( 53 SimpleFileSystemCallbackDispatcher(
56 const WeakPtr<SimpleFileSystem>& file_system, 54 const WeakPtr<SimpleFileSystem>& file_system,
57 WebFileSystemCallbacks* callbacks) 55 WebFileSystemCallbacks* callbacks)
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 293
296 FileSystemOperation* SimpleFileSystem::GetNewOperation( 294 FileSystemOperation* SimpleFileSystem::GetNewOperation(
297 WebFileSystemCallbacks* callbacks) { 295 WebFileSystemCallbacks* callbacks) {
298 SimpleFileSystemCallbackDispatcher* dispatcher = 296 SimpleFileSystemCallbackDispatcher* dispatcher =
299 new SimpleFileSystemCallbackDispatcher(AsWeakPtr(), callbacks); 297 new SimpleFileSystemCallbackDispatcher(AsWeakPtr(), callbacks);
300 FileSystemOperation* operation = new FileSystemOperation( 298 FileSystemOperation* operation = new FileSystemOperation(
301 dispatcher, base::MessageLoopProxy::current(), 299 dispatcher, base::MessageLoopProxy::current(),
302 file_system_context_.get(), NULL); 300 file_system_context_.get(), NULL);
303 return operation; 301 return operation;
304 } 302 }
OLDNEW
« no previous file with comments | « webkit/fileapi/webkit_fileapi.gypi ('k') | webkit/tools/test_shell/simple_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698