| 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 "base/files/file.h" | 7 #include "base/files/file.h" |
| 8 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
| 9 #include "net/base/io_buffer.h" | 9 #include "net/base/io_buffer.h" |
| 10 | 10 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 | 360 |
| 361 void FakeProvidedFileSystem::RemoveObserver( | 361 void FakeProvidedFileSystem::RemoveObserver( |
| 362 ProvidedFileSystemObserver* observer) { | 362 ProvidedFileSystemObserver* observer) { |
| 363 DCHECK(observer); | 363 DCHECK(observer); |
| 364 observers_.RemoveObserver(observer); | 364 observers_.RemoveObserver(observer); |
| 365 } | 365 } |
| 366 | 366 |
| 367 bool FakeProvidedFileSystem::Notify( | 367 bool FakeProvidedFileSystem::Notify( |
| 368 const base::FilePath& observed_path, | 368 const base::FilePath& observed_path, |
| 369 ProvidedFileSystemObserver::ChangeType change_type, | 369 ProvidedFileSystemObserver::ChangeType change_type, |
| 370 const ProvidedFileSystemObserver::ChildChanges& child_changes, | 370 scoped_ptr<ProvidedFileSystemObserver::ChildChanges> child_changes, |
| 371 const std::string& tag) { | 371 const std::string& tag) { |
| 372 NOTREACHED(); | 372 NOTREACHED(); |
| 373 return false; | 373 return false; |
| 374 } | 374 } |
| 375 | 375 |
| 376 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create( | 376 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create( |
| 377 Profile* profile, | 377 Profile* profile, |
| 378 const ProvidedFileSystemInfo& file_system_info) { | 378 const ProvidedFileSystemInfo& file_system_info) { |
| 379 return new FakeProvidedFileSystem(file_system_info); | 379 return new FakeProvidedFileSystem(file_system_info); |
| 380 } | 380 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 403 const std::vector<int>& task_ids, | 403 const std::vector<int>& task_ids, |
| 404 const storage::AsyncFileUtil::StatusCallback& callback) { | 404 const storage::AsyncFileUtil::StatusCallback& callback) { |
| 405 for (size_t i = 0; i < task_ids.size(); ++i) { | 405 for (size_t i = 0; i < task_ids.size(); ++i) { |
| 406 tracker_.TryCancel(task_ids[i]); | 406 tracker_.TryCancel(task_ids[i]); |
| 407 } | 407 } |
| 408 callback.Run(base::File::FILE_OK); | 408 callback.Run(base::File::FILE_OK); |
| 409 } | 409 } |
| 410 | 410 |
| 411 } // namespace file_system_provider | 411 } // namespace file_system_provider |
| 412 } // namespace chromeos | 412 } // namespace chromeos |
| OLD | NEW |