| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 } | 256 } |
| 257 | 257 |
| 258 void FakeProvidedFileSystem::CopyEntry( | 258 void FakeProvidedFileSystem::CopyEntry( |
| 259 const base::FilePath& source_path, | 259 const base::FilePath& source_path, |
| 260 const base::FilePath& target_path, | 260 const base::FilePath& target_path, |
| 261 const fileapi::AsyncFileUtil::StatusCallback& callback) { | 261 const fileapi::AsyncFileUtil::StatusCallback& callback) { |
| 262 base::MessageLoopProxy::current()->PostTask( | 262 base::MessageLoopProxy::current()->PostTask( |
| 263 FROM_HERE, base::Bind(callback, base::File::FILE_OK)); | 263 FROM_HERE, base::Bind(callback, base::File::FILE_OK)); |
| 264 } | 264 } |
| 265 | 265 |
| 266 void FakeProvidedFileSystem::MoveEntry( |
| 267 const base::FilePath& source_path, |
| 268 const base::FilePath& target_path, |
| 269 const fileapi::AsyncFileUtil::StatusCallback& callback) { |
| 270 base::MessageLoopProxy::current()->PostTask( |
| 271 FROM_HERE, base::Bind(callback, base::File::FILE_OK)); |
| 272 } |
| 273 |
| 266 const ProvidedFileSystemInfo& FakeProvidedFileSystem::GetFileSystemInfo() | 274 const ProvidedFileSystemInfo& FakeProvidedFileSystem::GetFileSystemInfo() |
| 267 const { | 275 const { |
| 268 return file_system_info_; | 276 return file_system_info_; |
| 269 } | 277 } |
| 270 | 278 |
| 271 RequestManager* FakeProvidedFileSystem::GetRequestManager() { | 279 RequestManager* FakeProvidedFileSystem::GetRequestManager() { |
| 272 NOTREACHED(); | 280 NOTREACHED(); |
| 273 return NULL; | 281 return NULL; |
| 274 } | 282 } |
| 275 | 283 |
| 276 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create( | 284 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create( |
| 277 Profile* profile, | 285 Profile* profile, |
| 278 const ProvidedFileSystemInfo& file_system_info) { | 286 const ProvidedFileSystemInfo& file_system_info) { |
| 279 return new FakeProvidedFileSystem(file_system_info); | 287 return new FakeProvidedFileSystem(file_system_info); |
| 280 } | 288 } |
| 281 | 289 |
| 282 base::WeakPtr<ProvidedFileSystemInterface> | 290 base::WeakPtr<ProvidedFileSystemInterface> |
| 283 FakeProvidedFileSystem::GetWeakPtr() { | 291 FakeProvidedFileSystem::GetWeakPtr() { |
| 284 return weak_ptr_factory_.GetWeakPtr(); | 292 return weak_ptr_factory_.GetWeakPtr(); |
| 285 } | 293 } |
| 286 | 294 |
| 287 } // namespace file_system_provider | 295 } // namespace file_system_provider |
| 288 } // namespace chromeos | 296 } // namespace chromeos |
| OLD | NEW |