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

Unified Diff: chrome/browser/drive/dummy_drive_service.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/drive/dummy_drive_service.h ('k') | chrome/browser/drive/event_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/dummy_drive_service.cc
diff --git a/chrome/browser/drive/dummy_drive_service.cc b/chrome/browser/drive/dummy_drive_service.cc
deleted file mode 100644
index 053cb17ff42843c0508d36b0d1cbf44f4850a155..0000000000000000000000000000000000000000
--- a/chrome/browser/drive/dummy_drive_service.cc
+++ /dev/null
@@ -1,224 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/drive/dummy_drive_service.h"
-
-#include "base/bind.h"
-
-using google_apis::AboutResourceCallback;
-using google_apis::AppListCallback;
-using google_apis::AuthStatusCallback;
-using google_apis::AuthorizeAppCallback;
-using google_apis::CancelCallback;
-using google_apis::ChangeListCallback;
-using google_apis::DownloadActionCallback;
-using google_apis::EntryActionCallback;
-using google_apis::FileListCallback;
-using google_apis::FileResourceCallback;
-using google_apis::GetContentCallback;
-using google_apis::GetShareUrlCallback;
-using google_apis::InitiateUploadCallback;
-using google_apis::ProgressCallback;
-using google_apis::drive::UploadRangeCallback;
-
-namespace drive {
-
-DummyDriveService::DummyDriveService() {}
-
-DummyDriveService::~DummyDriveService() {}
-
-void DummyDriveService::Initialize(const std::string& account_id) {}
-
-void DummyDriveService::AddObserver(DriveServiceObserver* observer) {}
-
-void DummyDriveService::RemoveObserver(DriveServiceObserver* observer) {}
-
-bool DummyDriveService::CanSendRequest() const { return true; }
-
-bool DummyDriveService::HasAccessToken() const { return true; }
-
-void DummyDriveService::RequestAccessToken(const AuthStatusCallback& callback) {
- callback.Run(google_apis::HTTP_NOT_MODIFIED, "fake_access_token");
-}
-
-bool DummyDriveService::HasRefreshToken() const { return true; }
-
-void DummyDriveService::ClearAccessToken() { }
-
-void DummyDriveService::ClearRefreshToken() { }
-
-std::string DummyDriveService::GetRootResourceId() const {
- return "dummy_root";
-}
-
-CancelCallback DummyDriveService::GetAllFileList(
- const FileListCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::GetFileListInDirectory(
- const std::string& directory_resource_id,
- const FileListCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::Search(
- const std::string& search_query,
- const FileListCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::SearchByTitle(
- const std::string& title,
- const std::string& directory_resource_id,
- const FileListCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::GetChangeList(
- int64 start_changestamp,
- const ChangeListCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::GetRemainingChangeList(
- const GURL& next_link,
- const ChangeListCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::GetRemainingFileList(
- const GURL& next_link,
- const FileListCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::GetFileResource(
- const std::string& resource_id,
- const FileResourceCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::GetShareUrl(
- const std::string& resource_id,
- const GURL& embed_origin,
- const GetShareUrlCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::GetAboutResource(
- const AboutResourceCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::GetAppList(
- const AppListCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::DeleteResource(
- const std::string& resource_id,
- const std::string& etag,
- const EntryActionCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::TrashResource(
- const std::string& resource_id,
- const EntryActionCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::DownloadFile(
- const base::FilePath& local_cache_path,
- const std::string& resource_id,
- const DownloadActionCallback& download_action_callback,
- const GetContentCallback& get_content_callback,
- const ProgressCallback& progress_callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::CopyResource(
- const std::string& resource_id,
- const std::string& parent_resource_id,
- const std::string& new_title,
- const base::Time& last_modified,
- const FileResourceCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::UpdateResource(
- const std::string& resource_id,
- const std::string& parent_resource_id,
- const std::string& new_title,
- const base::Time& last_modified,
- const base::Time& last_viewed_by_me,
- const google_apis::drive::Properties& properties,
- const google_apis::FileResourceCallback& callback) {
- return CancelCallback();
-}
-
-CancelCallback DummyDriveService::AddResourceToDirectory(
- const std::string& parent_resource_id,
- const std::string& resource_id,
- const EntryActionCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::RemoveResourceFromDirectory(
- const std::string& parent_resource_id,
- const std::string& resource_id,
- const EntryActionCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::AddNewDirectory(
- const std::string& parent_resource_id,
- const std::string& directory_title,
- const AddNewDirectoryOptions& options,
- const FileResourceCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::InitiateUploadNewFile(
- const std::string& content_type,
- int64 content_length,
- const std::string& parent_resource_id,
- const std::string& title,
- const UploadNewFileOptions& options,
- const InitiateUploadCallback& callback) {
- return CancelCallback();
-}
-
-CancelCallback DummyDriveService::InitiateUploadExistingFile(
- const std::string& content_type,
- int64 content_length,
- const std::string& resource_id,
- const UploadExistingFileOptions& options,
- const InitiateUploadCallback& callback) {
- return CancelCallback();
-}
-
-CancelCallback DummyDriveService::ResumeUpload(
- const GURL& upload_url,
- int64 start_position,
- int64 end_position,
- int64 content_length,
- const std::string& content_type,
- const base::FilePath& local_file_path,
- const UploadRangeCallback& callback,
- const ProgressCallback& progress_callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::GetUploadStatus(
- const GURL& upload_url,
- int64 content_length,
- const UploadRangeCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::MultipartUploadNewFile(
- const std::string& content_type,
- int64 content_length,
- const std::string& parent_resource_id,
- const std::string& title,
- const base::FilePath& local_file_path,
- const UploadNewFileOptions& options,
- const FileResourceCallback& callback,
- const ProgressCallback& progress_callback) {
- return CancelCallback();
-}
-
-CancelCallback DummyDriveService::MultipartUploadExistingFile(
- const std::string& content_type,
- int64 content_length,
- const std::string& resource_id,
- const base::FilePath& local_file_path,
- const UploadExistingFileOptions& options,
- const FileResourceCallback& callback,
- const ProgressCallback& progress_callback) {
- return CancelCallback();
-}
-
-CancelCallback DummyDriveService::AuthorizeApp(
- const std::string& resource_id,
- const std::string& app_id,
- const AuthorizeAppCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::UninstallApp(
- const std::string& app_id,
- const EntryActionCallback& callback) { return CancelCallback(); }
-
-CancelCallback DummyDriveService::AddPermission(
- const std::string& resource_id,
- const std::string& email,
- google_apis::drive::PermissionRole role,
- const EntryActionCallback& callback) { return CancelCallback(); }
-scoped_ptr<BatchRequestConfiguratorInterface>
-DummyDriveService::StartBatchRequest() {
- return scoped_ptr<BatchRequestConfiguratorInterface>();
-}
-
-} // namespace drive
« no previous file with comments | « chrome/browser/drive/dummy_drive_service.h ('k') | chrome/browser/drive/event_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698