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

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

Issue 1088883002: Add events for configuring and adding new providers to FSP API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 5 years, 8 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/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "net/base/io_buffer.h" 8 #include "net/base/io_buffer.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 const base::FilePath& entry_path, 365 const base::FilePath& entry_path,
366 bool recursive, 366 bool recursive,
367 storage::WatcherManager::ChangeType change_type, 367 storage::WatcherManager::ChangeType change_type,
368 scoped_ptr<ProvidedFileSystemObserver::Changes> changes, 368 scoped_ptr<ProvidedFileSystemObserver::Changes> changes,
369 const std::string& tag, 369 const std::string& tag,
370 const storage::AsyncFileUtil::StatusCallback& callback) { 370 const storage::AsyncFileUtil::StatusCallback& callback) {
371 NOTREACHED(); 371 NOTREACHED();
372 callback.Run(base::File::FILE_ERROR_SECURITY); 372 callback.Run(base::File::FILE_ERROR_SECURITY);
373 } 373 }
374 374
375 void FakeProvidedFileSystem::Configure(
376 const storage::AsyncFileUtil::StatusCallback& callback) {
377 NOTREACHED();
378 callback.Run(base::File::FILE_ERROR_SECURITY);
379 }
380
375 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create( 381 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create(
376 Profile* profile, 382 Profile* profile,
377 const ProvidedFileSystemInfo& file_system_info) { 383 const ProvidedFileSystemInfo& file_system_info) {
378 return new FakeProvidedFileSystem(file_system_info); 384 return new FakeProvidedFileSystem(file_system_info);
379 } 385 }
380 386
381 base::WeakPtr<ProvidedFileSystemInterface> 387 base::WeakPtr<ProvidedFileSystemInterface>
382 FakeProvidedFileSystem::GetWeakPtr() { 388 FakeProvidedFileSystem::GetWeakPtr() {
383 return weak_ptr_factory_.GetWeakPtr(); 389 return weak_ptr_factory_.GetWeakPtr();
384 } 390 }
(...skipping 11 matching lines...) Expand all
396 } 402 }
397 403
398 void FakeProvidedFileSystem::AbortMany(const std::vector<int>& task_ids) { 404 void FakeProvidedFileSystem::AbortMany(const std::vector<int>& task_ids) {
399 for (size_t i = 0; i < task_ids.size(); ++i) { 405 for (size_t i = 0; i < task_ids.size(); ++i) {
400 tracker_.TryCancel(task_ids[i]); 406 tracker_.TryCancel(task_ids[i]);
401 } 407 }
402 } 408 }
403 409
404 } // namespace file_system_provider 410 } // namespace file_system_provider
405 } // namespace chromeos 411 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698