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

Side by Side Diff: webkit/tools/test_shell/simple_file_writer.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/tools/test_shell/simple_file_system.cc ('k') | webkit/tools/test_shell/test_shell.gypi » ('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_writer.h" 5 #include "webkit/tools/test_shell/simple_file_writer.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "net/url_request/url_request_context.h" 9 #include "net/url_request/url_request_context.h"
10 #include "webkit/fileapi/file_system_callback_dispatcher.h" 10 #include "webkit/fileapi/file_system_callback_dispatcher.h"
11 #include "webkit/fileapi/file_system_context.h" 11 #include "webkit/fileapi/file_system_context.h"
12 #include "webkit/fileapi/file_system_file_util.h"
13 #include "webkit/fileapi/file_system_operation.h" 12 #include "webkit/fileapi/file_system_operation.h"
14 #include "webkit/glue/webkit_glue.h" 13 #include "webkit/glue/webkit_glue.h"
15 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" 14 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
16 15
17 using fileapi::FileSystemCallbackDispatcher; 16 using fileapi::FileSystemCallbackDispatcher;
18 using fileapi::FileSystemContext; 17 using fileapi::FileSystemContext;
19 using fileapi::FileSystemFileUtil;
20 using fileapi::FileSystemOperation; 18 using fileapi::FileSystemOperation;
21 using fileapi::WebFileWriterBase; 19 using fileapi::WebFileWriterBase;
22 using WebKit::WebFileWriterClient; 20 using WebKit::WebFileWriterClient;
23 using WebKit::WebString; 21 using WebKit::WebString;
24 using WebKit::WebURL; 22 using WebKit::WebURL;
25 23
26 net::URLRequestContext* SimpleFileWriter::request_context_ = NULL; 24 net::URLRequestContext* SimpleFileWriter::request_context_ = NULL;
27 25
28 // Helper class to proxy to write and truncate calls to the IO thread, 26 // Helper class to proxy to write and truncate calls to the IO thread,
29 // and to proxy the results back to the main thead. There is a one-to-one 27 // and to proxy the results back to the main thead. There is a one-to-one
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 } 194 }
197 195
198 void SimpleFileWriter::DoWrite( 196 void SimpleFileWriter::DoWrite(
199 const GURL& path, const GURL& blob_url, int64 offset) { 197 const GURL& path, const GURL& blob_url, int64 offset) {
200 io_thread_proxy_->Write(path, blob_url, offset); 198 io_thread_proxy_->Write(path, blob_url, offset);
201 } 199 }
202 200
203 void SimpleFileWriter::DoCancel() { 201 void SimpleFileWriter::DoCancel() {
204 io_thread_proxy_->Cancel(); 202 io_thread_proxy_->Cancel();
205 } 203 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/simple_file_system.cc ('k') | webkit/tools/test_shell/test_shell.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698