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

Side by Side Diff: components/drive/service/drive_api_service.h

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 COMPONENTS_DRIVE_SERVICE_DRIVE_API_SERVICE_H_ 5 #ifndef COMPONENTS_DRIVE_SERVICE_DRIVE_API_SERVICE_H_
6 #define COMPONENTS_DRIVE_SERVICE_DRIVE_API_SERVICE_H_ 6 #define COMPONENTS_DRIVE_SERVICE_DRIVE_API_SERVICE_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 11
12 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
13 #include "base/observer_list.h" 16 #include "base/observer_list.h"
14 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
15 #include "components/drive/service/drive_service_interface.h" 18 #include "components/drive/service/drive_service_interface.h"
16 #include "google_apis/drive/auth_service_interface.h" 19 #include "google_apis/drive/auth_service_interface.h"
17 #include "google_apis/drive/auth_service_observer.h" 20 #include "google_apis/drive/auth_service_observer.h"
18 #include "google_apis/drive/drive_api_url_generator.h" 21 #include "google_apis/drive/drive_api_url_generator.h"
19 22
(...skipping 27 matching lines...) Expand all
47 const base::WeakPtr<google_apis::drive::BatchUploadRequest>& 50 const base::WeakPtr<google_apis::drive::BatchUploadRequest>&
48 batch_request, 51 batch_request,
49 base::SequencedTaskRunner* task_runner, 52 base::SequencedTaskRunner* task_runner,
50 const google_apis::DriveApiUrlGenerator& url_generator, 53 const google_apis::DriveApiUrlGenerator& url_generator,
51 const google_apis::CancelCallback& cancel_callback); 54 const google_apis::CancelCallback& cancel_callback);
52 ~BatchRequestConfigurator() override; 55 ~BatchRequestConfigurator() override;
53 56
54 // BatchRequestConfiguratorInterface overrides. 57 // BatchRequestConfiguratorInterface overrides.
55 google_apis::CancelCallback MultipartUploadNewFile( 58 google_apis::CancelCallback MultipartUploadNewFile(
56 const std::string& content_type, 59 const std::string& content_type,
57 int64 content_length, 60 int64_t content_length,
58 const std::string& parent_resource_id, 61 const std::string& parent_resource_id,
59 const std::string& title, 62 const std::string& title,
60 const base::FilePath& local_file_path, 63 const base::FilePath& local_file_path,
61 const UploadNewFileOptions& options, 64 const UploadNewFileOptions& options,
62 const google_apis::FileResourceCallback& callback, 65 const google_apis::FileResourceCallback& callback,
63 const google_apis::ProgressCallback& progress_callback) override; 66 const google_apis::ProgressCallback& progress_callback) override;
64 google_apis::CancelCallback MultipartUploadExistingFile( 67 google_apis::CancelCallback MultipartUploadExistingFile(
65 const std::string& content_type, 68 const std::string& content_type,
66 int64 content_length, 69 int64_t content_length,
67 const std::string& resource_id, 70 const std::string& resource_id,
68 const base::FilePath& local_file_path, 71 const base::FilePath& local_file_path,
69 const UploadExistingFileOptions& options, 72 const UploadExistingFileOptions& options,
70 const google_apis::FileResourceCallback& callback, 73 const google_apis::FileResourceCallback& callback,
71 const google_apis::ProgressCallback& progress_callback) override; 74 const google_apis::ProgressCallback& progress_callback) override;
72 void Commit() override; 75 void Commit() override;
73 76
74 private: 77 private:
75 // Reference to batch request. It turns to null after committing. 78 // Reference to batch request. It turns to null after committing.
76 base::WeakPtr<google_apis::drive::BatchUploadRequest> batch_request_; 79 base::WeakPtr<google_apis::drive::BatchUploadRequest> batch_request_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 const std::string& directory_resource_id, 128 const std::string& directory_resource_id,
126 const google_apis::FileListCallback& callback) override; 129 const google_apis::FileListCallback& callback) override;
127 google_apis::CancelCallback Search( 130 google_apis::CancelCallback Search(
128 const std::string& search_query, 131 const std::string& search_query,
129 const google_apis::FileListCallback& callback) override; 132 const google_apis::FileListCallback& callback) override;
130 google_apis::CancelCallback SearchByTitle( 133 google_apis::CancelCallback SearchByTitle(
131 const std::string& title, 134 const std::string& title,
132 const std::string& directory_resource_id, 135 const std::string& directory_resource_id,
133 const google_apis::FileListCallback& callback) override; 136 const google_apis::FileListCallback& callback) override;
134 google_apis::CancelCallback GetChangeList( 137 google_apis::CancelCallback GetChangeList(
135 int64 start_changestamp, 138 int64_t start_changestamp,
136 const google_apis::ChangeListCallback& callback) override; 139 const google_apis::ChangeListCallback& callback) override;
137 google_apis::CancelCallback GetRemainingChangeList( 140 google_apis::CancelCallback GetRemainingChangeList(
138 const GURL& next_link, 141 const GURL& next_link,
139 const google_apis::ChangeListCallback& callback) override; 142 const google_apis::ChangeListCallback& callback) override;
140 google_apis::CancelCallback GetRemainingFileList( 143 google_apis::CancelCallback GetRemainingFileList(
141 const GURL& next_link, 144 const GURL& next_link,
142 const google_apis::FileListCallback& callback) override; 145 const google_apis::FileListCallback& callback) override;
143 google_apis::CancelCallback GetFileResource( 146 google_apis::CancelCallback GetFileResource(
144 const std::string& resource_id, 147 const std::string& resource_id,
145 const google_apis::FileResourceCallback& callback) override; 148 const google_apis::FileResourceCallback& callback) override;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 const std::string& parent_resource_id, 189 const std::string& parent_resource_id,
187 const std::string& resource_id, 190 const std::string& resource_id,
188 const google_apis::EntryActionCallback& callback) override; 191 const google_apis::EntryActionCallback& callback) override;
189 google_apis::CancelCallback AddNewDirectory( 192 google_apis::CancelCallback AddNewDirectory(
190 const std::string& parent_resource_id, 193 const std::string& parent_resource_id,
191 const std::string& directory_title, 194 const std::string& directory_title,
192 const AddNewDirectoryOptions& options, 195 const AddNewDirectoryOptions& options,
193 const google_apis::FileResourceCallback& callback) override; 196 const google_apis::FileResourceCallback& callback) override;
194 google_apis::CancelCallback InitiateUploadNewFile( 197 google_apis::CancelCallback InitiateUploadNewFile(
195 const std::string& content_type, 198 const std::string& content_type,
196 int64 content_length, 199 int64_t content_length,
197 const std::string& parent_resource_id, 200 const std::string& parent_resource_id,
198 const std::string& title, 201 const std::string& title,
199 const UploadNewFileOptions& options, 202 const UploadNewFileOptions& options,
200 const google_apis::InitiateUploadCallback& callback) override; 203 const google_apis::InitiateUploadCallback& callback) override;
201 google_apis::CancelCallback InitiateUploadExistingFile( 204 google_apis::CancelCallback InitiateUploadExistingFile(
202 const std::string& content_type, 205 const std::string& content_type,
203 int64 content_length, 206 int64_t content_length,
204 const std::string& resource_id, 207 const std::string& resource_id,
205 const UploadExistingFileOptions& options, 208 const UploadExistingFileOptions& options,
206 const google_apis::InitiateUploadCallback& callback) override; 209 const google_apis::InitiateUploadCallback& callback) override;
207 google_apis::CancelCallback ResumeUpload( 210 google_apis::CancelCallback ResumeUpload(
208 const GURL& upload_url, 211 const GURL& upload_url,
209 int64 start_position, 212 int64_t start_position,
210 int64 end_position, 213 int64_t end_position,
211 int64 content_length, 214 int64_t content_length,
212 const std::string& content_type, 215 const std::string& content_type,
213 const base::FilePath& local_file_path, 216 const base::FilePath& local_file_path,
214 const google_apis::drive::UploadRangeCallback& callback, 217 const google_apis::drive::UploadRangeCallback& callback,
215 const google_apis::ProgressCallback& progress_callback) override; 218 const google_apis::ProgressCallback& progress_callback) override;
216 google_apis::CancelCallback GetUploadStatus( 219 google_apis::CancelCallback GetUploadStatus(
217 const GURL& upload_url, 220 const GURL& upload_url,
218 int64 content_length, 221 int64_t content_length,
219 const google_apis::drive::UploadRangeCallback& callback) override; 222 const google_apis::drive::UploadRangeCallback& callback) override;
220 google_apis::CancelCallback MultipartUploadNewFile( 223 google_apis::CancelCallback MultipartUploadNewFile(
221 const std::string& content_type, 224 const std::string& content_type,
222 int64 content_length, 225 int64_t content_length,
223 const std::string& parent_resource_id, 226 const std::string& parent_resource_id,
224 const std::string& title, 227 const std::string& title,
225 const base::FilePath& local_file_path, 228 const base::FilePath& local_file_path,
226 const drive::UploadNewFileOptions& options, 229 const drive::UploadNewFileOptions& options,
227 const google_apis::FileResourceCallback& callback, 230 const google_apis::FileResourceCallback& callback,
228 const google_apis::ProgressCallback& progress_callback) override; 231 const google_apis::ProgressCallback& progress_callback) override;
229 google_apis::CancelCallback MultipartUploadExistingFile( 232 google_apis::CancelCallback MultipartUploadExistingFile(
230 const std::string& content_type, 233 const std::string& content_type,
231 int64 content_length, 234 int64_t content_length,
232 const std::string& resource_id, 235 const std::string& resource_id,
233 const base::FilePath& local_file_path, 236 const base::FilePath& local_file_path,
234 const drive::UploadExistingFileOptions& options, 237 const drive::UploadExistingFileOptions& options,
235 const google_apis::FileResourceCallback& callback, 238 const google_apis::FileResourceCallback& callback,
236 const google_apis::ProgressCallback& progress_callback) override; 239 const google_apis::ProgressCallback& progress_callback) override;
237 google_apis::CancelCallback AuthorizeApp( 240 google_apis::CancelCallback AuthorizeApp(
238 const std::string& resource_id, 241 const std::string& resource_id,
239 const std::string& app_id, 242 const std::string& app_id,
240 const google_apis::AuthorizeAppCallback& callback) override; 243 const google_apis::AuthorizeAppCallback& callback) override;
241 google_apis::CancelCallback UninstallApp( 244 google_apis::CancelCallback UninstallApp(
(...skipping 21 matching lines...) Expand all
263 base::ObserverList<DriveServiceObserver> observers_; 266 base::ObserverList<DriveServiceObserver> observers_;
264 google_apis::DriveApiUrlGenerator url_generator_; 267 google_apis::DriveApiUrlGenerator url_generator_;
265 const std::string custom_user_agent_; 268 const std::string custom_user_agent_;
266 269
267 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); 270 DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
268 }; 271 };
269 272
270 } // namespace drive 273 } // namespace drive
271 274
272 #endif // COMPONENTS_DRIVE_SERVICE_DRIVE_API_SERVICE_H_ 275 #endif // COMPONENTS_DRIVE_SERVICE_DRIVE_API_SERVICE_H_
OLDNEW
« no previous file with comments | « components/drive/search_metadata_unittest.cc ('k') | components/drive/service/drive_api_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698