Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Side by Side Diff: chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc

Issue 663713002: [fsp] Extract ObservedEntry and ObservedEntries to a separate file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Added missing files. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 const ProvidedFileSystemInfo& FakeProvidedFileSystem::GetFileSystemInfo() 340 const ProvidedFileSystemInfo& FakeProvidedFileSystem::GetFileSystemInfo()
341 const { 341 const {
342 return file_system_info_; 342 return file_system_info_;
343 } 343 }
344 344
345 RequestManager* FakeProvidedFileSystem::GetRequestManager() { 345 RequestManager* FakeProvidedFileSystem::GetRequestManager() {
346 NOTREACHED(); 346 NOTREACHED();
347 return NULL; 347 return NULL;
348 } 348 }
349 349
350 ProvidedFileSystemInterface::ObservedEntries* 350 ObservedEntries* FakeProvidedFileSystem::GetObservedEntries() {
351 FakeProvidedFileSystem::GetObservedEntries() {
352 NOTREACHED(); 351 NOTREACHED();
353 return NULL; 352 return NULL;
354 } 353 }
355 354
356 void FakeProvidedFileSystem::AddObserver(ProvidedFileSystemObserver* observer) { 355 void FakeProvidedFileSystem::AddObserver(ProvidedFileSystemObserver* observer) {
357 DCHECK(observer); 356 DCHECK(observer);
358 observers_.AddObserver(observer); 357 observers_.AddObserver(observer);
359 } 358 }
360 359
361 void FakeProvidedFileSystem::RemoveObserver( 360 void FakeProvidedFileSystem::RemoveObserver(
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 const std::vector<int>& task_ids, 402 const std::vector<int>& task_ids,
404 const storage::AsyncFileUtil::StatusCallback& callback) { 403 const storage::AsyncFileUtil::StatusCallback& callback) {
405 for (size_t i = 0; i < task_ids.size(); ++i) { 404 for (size_t i = 0; i < task_ids.size(); ++i) {
406 tracker_.TryCancel(task_ids[i]); 405 tracker_.TryCancel(task_ids[i]);
407 } 406 }
408 callback.Run(base::File::FILE_OK); 407 callback.Run(base::File::FILE_OK);
409 } 408 }
410 409
411 } // namespace file_system_provider 410 } // namespace file_system_provider
412 } // namespace chromeos 411 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698