| OLD | NEW |
| 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" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 virtual void DidWrite(int64 bytes, bool complete) { | 97 virtual void DidWrite(int64 bytes, bool complete) { |
| 98 proxy_->DidWrite(bytes, complete); | 98 proxy_->DidWrite(bytes, complete); |
| 99 } | 99 } |
| 100 | 100 |
| 101 virtual void DidReadMetadata(const base::PlatformFileInfo&) { | 101 virtual void DidReadMetadata(const base::PlatformFileInfo&) { |
| 102 NOTREACHED(); | 102 NOTREACHED(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 virtual void DidReadDirectory( | 105 virtual void DidReadDirectory( |
| 106 const std::vector<base::FileUtilProxy::Entry>& entries, | 106 const std::vector<base::FileUtilProxyBase::Entry>& entries, |
| 107 bool has_more) { | 107 bool has_more) { |
| 108 NOTREACHED(); | 108 NOTREACHED(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 virtual void DidOpenFileSystem(const std::string& name, | 111 virtual void DidOpenFileSystem(const std::string& name, |
| 112 const FilePath& root_path) { | 112 const FilePath& root_path) { |
| 113 NOTREACHED(); | 113 NOTREACHED(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 scoped_refptr<IOThreadProxy> proxy_; | 116 scoped_refptr<IOThreadProxy> proxy_; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 181 } |
| 182 | 182 |
| 183 void SimpleFileWriter::DoWrite( | 183 void SimpleFileWriter::DoWrite( |
| 184 const FilePath& path, const GURL& blob_url, int64 offset) { | 184 const FilePath& path, const GURL& blob_url, int64 offset) { |
| 185 io_thread_proxy_->Write(path, blob_url, offset); | 185 io_thread_proxy_->Write(path, blob_url, offset); |
| 186 } | 186 } |
| 187 | 187 |
| 188 void SimpleFileWriter::DoCancel() { | 188 void SimpleFileWriter::DoCancel() { |
| 189 io_thread_proxy_->Cancel(); | 189 io_thread_proxy_->Cancel(); |
| 190 } | 190 } |
| OLD | NEW |