OLD | NEW |
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/logging.h" | 9 #include "base/logging.h" |
9 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop_proxy.h" |
10 #include "net/url_request/url_request_context.h" | 11 #include "net/url_request/url_request_context.h" |
11 #include "webkit/fileapi/file_system_context.h" | 12 #include "webkit/fileapi/file_system_context.h" |
12 #include "webkit/fileapi/file_system_operation_interface.h" | 13 #include "webkit/fileapi/file_system_operation_interface.h" |
13 #include "webkit/glue/webkit_glue.h" | 14 #include "webkit/glue/webkit_glue.h" |
14 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 15 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
15 | 16 |
16 using fileapi::FileSystemContext; | 17 using fileapi::FileSystemContext; |
17 using fileapi::FileSystemOperationInterface; | 18 using fileapi::FileSystemOperationInterface; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 176 } |
176 | 177 |
177 void SimpleFileWriter::DoWrite( | 178 void SimpleFileWriter::DoWrite( |
178 const GURL& path, const GURL& blob_url, int64 offset) { | 179 const GURL& path, const GURL& blob_url, int64 offset) { |
179 io_thread_proxy_->Write(path, blob_url, offset); | 180 io_thread_proxy_->Write(path, blob_url, offset); |
180 } | 181 } |
181 | 182 |
182 void SimpleFileWriter::DoCancel() { | 183 void SimpleFileWriter::DoCancel() { |
183 io_thread_proxy_->Cancel(); | 184 io_thread_proxy_->Cancel(); |
184 } | 185 } |
OLD | NEW |