OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 virtual void DidWrite(int64 bytes, bool complete) { | 93 virtual void DidWrite(int64 bytes, bool complete) { |
94 proxy_->DidWrite(bytes, complete); | 94 proxy_->DidWrite(bytes, complete); |
95 } | 95 } |
96 | 96 |
97 virtual void DidReadMetadata(const base::PlatformFileInfo&) { | 97 virtual void DidReadMetadata(const base::PlatformFileInfo&) { |
98 NOTREACHED(); | 98 NOTREACHED(); |
99 } | 99 } |
100 | 100 |
101 virtual void DidReadDirectory( | 101 virtual void DidReadDirectory( |
102 const std::vector<base::file_util_proxy::Entry>& entries, | 102 const std::vector<base::FileUtilProxy::Entry>& entries, |
103 bool has_more) { | 103 bool has_more) { |
104 NOTREACHED(); | 104 NOTREACHED(); |
105 } | 105 } |
106 | 106 |
107 virtual void DidOpenFileSystem(const std::string& name, | 107 virtual void DidOpenFileSystem(const std::string& name, |
108 const FilePath& root_path) { | 108 const FilePath& root_path) { |
109 NOTREACHED(); | 109 NOTREACHED(); |
110 } | 110 } |
111 | 111 |
112 scoped_refptr<IOThreadProxy> proxy_; | 112 scoped_refptr<IOThreadProxy> proxy_; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 } | 177 } |
178 | 178 |
179 void SimpleFileWriter::DoWrite( | 179 void SimpleFileWriter::DoWrite( |
180 const FilePath& path, const GURL& blob_url, int64 offset) { | 180 const FilePath& path, const GURL& blob_url, int64 offset) { |
181 io_thread_proxy_->Write(path, blob_url, offset); | 181 io_thread_proxy_->Write(path, blob_url, offset); |
182 } | 182 } |
183 | 183 |
184 void SimpleFileWriter::DoCancel() { | 184 void SimpleFileWriter::DoCancel() { |
185 io_thread_proxy_->Cancel(); | 185 io_thread_proxy_->Cancel(); |
186 } | 186 } |
OLD | NEW |