OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" | 5 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/files/file.h" | 9 #include "base/files/file.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 void FakeProvidedFileSystem::CreateDirectory( | 231 void FakeProvidedFileSystem::CreateDirectory( |
232 const base::FilePath& directory_path, | 232 const base::FilePath& directory_path, |
233 bool exclusive, | 233 bool exclusive, |
234 bool recursive, | 234 bool recursive, |
235 const fileapi::AsyncFileUtil::StatusCallback& callback) { | 235 const fileapi::AsyncFileUtil::StatusCallback& callback) { |
236 base::MessageLoopProxy::current()->PostTask( | 236 base::MessageLoopProxy::current()->PostTask( |
237 FROM_HERE, base::Bind(callback, base::File::FILE_OK)); | 237 FROM_HERE, base::Bind(callback, base::File::FILE_OK)); |
238 } | 238 } |
239 | 239 |
| 240 void FakeProvidedFileSystem::DeleteEntry( |
| 241 const base::FilePath& entry_path, |
| 242 bool recursive, |
| 243 const fileapi::AsyncFileUtil::StatusCallback& callback) { |
| 244 base::MessageLoopProxy::current()->PostTask( |
| 245 FROM_HERE, base::Bind(callback, base::File::FILE_OK)); |
| 246 } |
| 247 |
240 const ProvidedFileSystemInfo& FakeProvidedFileSystem::GetFileSystemInfo() | 248 const ProvidedFileSystemInfo& FakeProvidedFileSystem::GetFileSystemInfo() |
241 const { | 249 const { |
242 return file_system_info_; | 250 return file_system_info_; |
243 } | 251 } |
244 | 252 |
245 RequestManager* FakeProvidedFileSystem::GetRequestManager() { | 253 RequestManager* FakeProvidedFileSystem::GetRequestManager() { |
246 NOTREACHED(); | 254 NOTREACHED(); |
247 return NULL; | 255 return NULL; |
248 } | 256 } |
249 | 257 |
250 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create( | 258 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create( |
251 Profile* profile, | 259 Profile* profile, |
252 const ProvidedFileSystemInfo& file_system_info) { | 260 const ProvidedFileSystemInfo& file_system_info) { |
253 return new FakeProvidedFileSystem(file_system_info); | 261 return new FakeProvidedFileSystem(file_system_info); |
254 } | 262 } |
255 | 263 |
256 base::WeakPtr<ProvidedFileSystemInterface> | 264 base::WeakPtr<ProvidedFileSystemInterface> |
257 FakeProvidedFileSystem::GetWeakPtr() { | 265 FakeProvidedFileSystem::GetWeakPtr() { |
258 return weak_ptr_factory_.GetWeakPtr(); | 266 return weak_ptr_factory_.GetWeakPtr(); |
259 } | 267 } |
260 | 268 |
261 } // namespace file_system_provider | 269 } // namespace file_system_provider |
262 } // namespace chromeos | 270 } // namespace chromeos |
OLD | NEW |