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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/fake_drive_uploader.h

Issue 1135353004: Revert of Drive: Let DriveUploader use batch request API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 }; 43 };
44 44
45 // A fake implementation of DriveUploaderInterface, which provides fake 45 // A fake implementation of DriveUploaderInterface, which provides fake
46 // behaviors for file uploading. 46 // behaviors for file uploading.
47 class FakeDriveUploader : public drive::DriveUploaderInterface { 47 class FakeDriveUploader : public drive::DriveUploaderInterface {
48 public: 48 public:
49 explicit FakeDriveUploader(FakeDriveServiceWrapper* fake_drive_service); 49 explicit FakeDriveUploader(FakeDriveServiceWrapper* fake_drive_service);
50 ~FakeDriveUploader() override; 50 ~FakeDriveUploader() override;
51 51
52 // DriveUploaderInterface overrides. 52 // DriveUploaderInterface overrides.
53 void StartBatchProcessing() override;
54 void StopBatchProcessing() override;
55 google_apis::CancelCallback UploadNewFile( 53 google_apis::CancelCallback UploadNewFile(
56 const std::string& parent_resource_id, 54 const std::string& parent_resource_id,
57 const base::FilePath& local_file_path, 55 const base::FilePath& local_file_path,
58 const std::string& title, 56 const std::string& title,
59 const std::string& content_type, 57 const std::string& content_type,
60 const drive::UploadNewFileOptions& options, 58 const drive::UploadNewFileOptions& options,
61 const drive::UploadCompletionCallback& callback, 59 const drive::UploadCompletionCallback& callback,
62 const google_apis::ProgressCallback& progress_callback) override; 60 const google_apis::ProgressCallback& progress_callback) override;
63 google_apis::CancelCallback UploadExistingFile( 61 google_apis::CancelCallback UploadExistingFile(
64 const std::string& resource_id, 62 const std::string& resource_id,
(...skipping 17 matching lines...) Expand all
82 FakeDriveServiceWrapper* fake_drive_service_; 80 FakeDriveServiceWrapper* fake_drive_service_;
83 bool make_file_conflict_; 81 bool make_file_conflict_;
84 82
85 DISALLOW_COPY_AND_ASSIGN(FakeDriveUploader); 83 DISALLOW_COPY_AND_ASSIGN(FakeDriveUploader);
86 }; 84 };
87 85
88 } // namespace drive_backend 86 } // namespace drive_backend
89 } // namespace sync_file_system 87 } // namespace sync_file_system
90 88
91 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_ 89 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_DRIVE_UPLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698