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

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

Issue 15859007: Move browser-specific FileAPI code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dump_file_system build fix Created 7 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
11 #include "net/url_request/url_request_context.h" 11 #include "net/url_request/url_request_context.h"
12 #include "webkit/fileapi/file_system_context.h" 12 #include "webkit/browser/fileapi/file_system_context.h"
13 #include "webkit/fileapi/file_system_operation.h" 13 #include "webkit/browser/fileapi/file_system_operation.h"
14 #include "webkit/browser/fileapi/file_system_url.h"
14 #include "webkit/fileapi/file_system_types.h" 15 #include "webkit/fileapi/file_system_types.h"
15 #include "webkit/fileapi/file_system_url.h"
16 #include "webkit/glue/webkit_glue.h" 16 #include "webkit/glue/webkit_glue.h"
17 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" 17 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
18 18
19 using fileapi::FileSystemURL; 19 using fileapi::FileSystemURL;
20 using fileapi::FileSystemContext; 20 using fileapi::FileSystemContext;
21 using fileapi::FileSystemOperation; 21 using fileapi::FileSystemOperation;
22 using fileapi::WebFileWriterBase; 22 using fileapi::WebFileWriterBase;
23 using WebKit::WebFileWriterClient; 23 using WebKit::WebFileWriterClient;
24 using WebKit::WebString; 24 using WebKit::WebString;
25 using WebKit::WebURL; 25 using WebKit::WebURL;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 void SimpleFileWriter::DoWrite( 197 void SimpleFileWriter::DoWrite(
198 const GURL& path, const GURL& blob_url, int64 offset) { 198 const GURL& path, const GURL& blob_url, int64 offset) {
199 FileSystemURL url = file_system_context_->CrackURL(path); 199 FileSystemURL url = file_system_context_->CrackURL(path);
200 io_thread_proxy_->Write(url, blob_url, offset); 200 io_thread_proxy_->Write(url, blob_url, offset);
201 } 201 }
202 202
203 void SimpleFileWriter::DoCancel() { 203 void SimpleFileWriter::DoCancel() {
204 io_thread_proxy_->Cancel(); 204 io_thread_proxy_->Cancel();
205 } 205 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/simple_file_system.cc ('k') | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698