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

Side by Side Diff: chrome/browser/google_apis/fake_drive_service.h

Issue 12207075: Split InitiateUpload method into two. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b148632_extract_initiate_upload_operation_base
Patch Set: Rebase Created 7 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/google_apis/drive_service_interface.h" 9 #include "chrome/browser/google_apis/drive_service_interface.h"
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const std::string& resource_id, 112 const std::string& resource_id,
113 const EntryActionCallback& callback) OVERRIDE; 113 const EntryActionCallback& callback) OVERRIDE;
114 virtual void RemoveResourceFromDirectory( 114 virtual void RemoveResourceFromDirectory(
115 const std::string& parent_resource_id, 115 const std::string& parent_resource_id,
116 const std::string& resource_id, 116 const std::string& resource_id,
117 const EntryActionCallback& callback) OVERRIDE; 117 const EntryActionCallback& callback) OVERRIDE;
118 virtual void AddNewDirectory( 118 virtual void AddNewDirectory(
119 const std::string& parent_resource_id, 119 const std::string& parent_resource_id,
120 const std::string& directory_name, 120 const std::string& directory_name,
121 const GetResourceEntryCallback& callback) OVERRIDE; 121 const GetResourceEntryCallback& callback) OVERRIDE;
122 virtual void InitiateUpload(const InitiateUploadParams& params, 122 virtual void InitiateUploadNewFile(
123 const InitiateUploadCallback& callback) OVERRIDE; 123 const FilePath& drive_file_path,
124 const std::string& content_type,
125 int64 content_length,
126 const GURL& parent_upload_url,
127 const std::string& title,
128 const InitiateUploadCallback& callback) OVERRIDE;
129 virtual void InitiateUploadExistingFile(
130 const FilePath& drive_file_path,
131 const std::string& content_type,
132 int64 content_length,
133 const GURL& upload_url,
134 const std::string& etag,
135 const InitiateUploadCallback& callback) OVERRIDE;
124 virtual void ResumeUpload(const ResumeUploadParams& params, 136 virtual void ResumeUpload(const ResumeUploadParams& params,
125 const UploadRangeCallback& callback) OVERRIDE; 137 const UploadRangeCallback& callback) OVERRIDE;
126 virtual void GetUploadStatus( 138 virtual void GetUploadStatus(
127 UploadMode upload_mode, 139 UploadMode upload_mode,
128 const base::FilePath& drive_file_path, 140 const base::FilePath& drive_file_path,
129 const GURL& upload_url, 141 const GURL& upload_url,
130 int64 content_length, 142 int64 content_length,
131 const UploadRangeCallback& callback) OVERRIDE; 143 const UploadRangeCallback& callback) OVERRIDE;
132 virtual void AuthorizeApp(const GURL& edit_url, 144 virtual void AuthorizeApp(const GURL& edit_url,
133 const std::string& app_id, 145 const std::string& app_id,
(...skipping 29 matching lines...) Expand all
163 int resource_list_load_count_; 175 int resource_list_load_count_;
164 int account_metadata_load_count_; 176 int account_metadata_load_count_;
165 bool offline_; 177 bool offline_;
166 178
167 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); 179 DISALLOW_COPY_AND_ASSIGN(FakeDriveService);
168 }; 180 };
169 181
170 } // namespace google_apis 182 } // namespace google_apis
171 183
172 #endif // CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ 184 #endif // CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/dummy_drive_service.cc ('k') | chrome/browser/google_apis/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698