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

Side by Side Diff: components/drive/service/dummy_drive_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_DUMMY_DRIVE_SERVICE_H_ 5 #ifndef COMPONENTS_DRIVE_SERVICE_DUMMY_DRIVE_SERVICE_H_
6 #define COMPONENTS_DRIVE_SERVICE_DUMMY_DRIVE_SERVICE_H_ 6 #define COMPONENTS_DRIVE_SERVICE_DUMMY_DRIVE_SERVICE_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 11
10 #include "components/drive/service/drive_service_interface.h" 12 #include "components/drive/service/drive_service_interface.h"
11 #include "google_apis/drive/auth_service_interface.h" 13 #include "google_apis/drive/auth_service_interface.h"
12 14
13 namespace drive { 15 namespace drive {
14 16
15 // Dummy implementation of DriveServiceInterface. 17 // Dummy implementation of DriveServiceInterface.
16 // All functions do nothing, or return place holder values like 'true'. 18 // All functions do nothing, or return place holder values like 'true'.
17 class DummyDriveService : public DriveServiceInterface { 19 class DummyDriveService : public DriveServiceInterface {
(...skipping 19 matching lines...) Expand all
37 const std::string& directory_resource_id, 39 const std::string& directory_resource_id,
38 const google_apis::FileListCallback& callback) override; 40 const google_apis::FileListCallback& callback) override;
39 google_apis::CancelCallback Search( 41 google_apis::CancelCallback Search(
40 const std::string& search_query, 42 const std::string& search_query,
41 const google_apis::FileListCallback& callback) override; 43 const google_apis::FileListCallback& callback) override;
42 google_apis::CancelCallback SearchByTitle( 44 google_apis::CancelCallback SearchByTitle(
43 const std::string& title, 45 const std::string& title,
44 const std::string& directory_resource_id, 46 const std::string& directory_resource_id,
45 const google_apis::FileListCallback& callback) override; 47 const google_apis::FileListCallback& callback) override;
46 google_apis::CancelCallback GetChangeList( 48 google_apis::CancelCallback GetChangeList(
47 int64 start_changestamp, 49 int64_t start_changestamp,
48 const google_apis::ChangeListCallback& callback) override; 50 const google_apis::ChangeListCallback& callback) override;
49 google_apis::CancelCallback GetRemainingChangeList( 51 google_apis::CancelCallback GetRemainingChangeList(
50 const GURL& next_link, 52 const GURL& next_link,
51 const google_apis::ChangeListCallback& callback) override; 53 const google_apis::ChangeListCallback& callback) override;
52 google_apis::CancelCallback GetRemainingFileList( 54 google_apis::CancelCallback GetRemainingFileList(
53 const GURL& next_link, 55 const GURL& next_link,
54 const google_apis::FileListCallback& callback) override; 56 const google_apis::FileListCallback& callback) override;
55 google_apis::CancelCallback GetFileResource( 57 google_apis::CancelCallback GetFileResource(
56 const std::string& resource_id, 58 const std::string& resource_id,
57 const google_apis::FileResourceCallback& callback) override; 59 const google_apis::FileResourceCallback& callback) override;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 const std::string& parent_resource_id, 100 const std::string& parent_resource_id,
99 const std::string& resource_id, 101 const std::string& resource_id,
100 const google_apis::EntryActionCallback& callback) override; 102 const google_apis::EntryActionCallback& callback) override;
101 google_apis::CancelCallback AddNewDirectory( 103 google_apis::CancelCallback AddNewDirectory(
102 const std::string& parent_resource_id, 104 const std::string& parent_resource_id,
103 const std::string& directory_title, 105 const std::string& directory_title,
104 const AddNewDirectoryOptions& options, 106 const AddNewDirectoryOptions& options,
105 const google_apis::FileResourceCallback& callback) override; 107 const google_apis::FileResourceCallback& callback) override;
106 google_apis::CancelCallback InitiateUploadNewFile( 108 google_apis::CancelCallback InitiateUploadNewFile(
107 const std::string& content_type, 109 const std::string& content_type,
108 int64 content_length, 110 int64_t content_length,
109 const std::string& parent_resource_id, 111 const std::string& parent_resource_id,
110 const std::string& title, 112 const std::string& title,
111 const UploadNewFileOptions& options, 113 const UploadNewFileOptions& options,
112 const google_apis::InitiateUploadCallback& callback) override; 114 const google_apis::InitiateUploadCallback& callback) override;
113 google_apis::CancelCallback InitiateUploadExistingFile( 115 google_apis::CancelCallback InitiateUploadExistingFile(
114 const std::string& content_type, 116 const std::string& content_type,
115 int64 content_length, 117 int64_t content_length,
116 const std::string& resource_id, 118 const std::string& resource_id,
117 const UploadExistingFileOptions& options, 119 const UploadExistingFileOptions& options,
118 const google_apis::InitiateUploadCallback& callback) override; 120 const google_apis::InitiateUploadCallback& callback) override;
119 google_apis::CancelCallback ResumeUpload( 121 google_apis::CancelCallback ResumeUpload(
120 const GURL& upload_url, 122 const GURL& upload_url,
121 int64 start_position, 123 int64_t start_position,
122 int64 end_position, 124 int64_t end_position,
123 int64 content_length, 125 int64_t content_length,
124 const std::string& content_type, 126 const std::string& content_type,
125 const base::FilePath& local_file_path, 127 const base::FilePath& local_file_path,
126 const google_apis::drive::UploadRangeCallback& callback, 128 const google_apis::drive::UploadRangeCallback& callback,
127 const google_apis::ProgressCallback& progress_callback) override; 129 const google_apis::ProgressCallback& progress_callback) override;
128 google_apis::CancelCallback GetUploadStatus( 130 google_apis::CancelCallback GetUploadStatus(
129 const GURL& upload_url, 131 const GURL& upload_url,
130 int64 content_length, 132 int64_t content_length,
131 const google_apis::drive::UploadRangeCallback& callback) override; 133 const google_apis::drive::UploadRangeCallback& callback) override;
132 google_apis::CancelCallback MultipartUploadNewFile( 134 google_apis::CancelCallback MultipartUploadNewFile(
133 const std::string& content_type, 135 const std::string& content_type,
134 int64 content_length, 136 int64_t content_length,
135 const std::string& parent_resource_id, 137 const std::string& parent_resource_id,
136 const std::string& title, 138 const std::string& title,
137 const base::FilePath& local_file_path, 139 const base::FilePath& local_file_path,
138 const UploadNewFileOptions& options, 140 const UploadNewFileOptions& options,
139 const google_apis::FileResourceCallback& callback, 141 const google_apis::FileResourceCallback& callback,
140 const google_apis::ProgressCallback& progress_callback) override; 142 const google_apis::ProgressCallback& progress_callback) override;
141 google_apis::CancelCallback MultipartUploadExistingFile( 143 google_apis::CancelCallback MultipartUploadExistingFile(
142 const std::string& content_type, 144 const std::string& content_type,
143 int64 content_length, 145 int64_t content_length,
144 const std::string& resource_id, 146 const std::string& resource_id,
145 const base::FilePath& local_file_path, 147 const base::FilePath& local_file_path,
146 const UploadExistingFileOptions& options, 148 const UploadExistingFileOptions& options,
147 const google_apis::FileResourceCallback& callback, 149 const google_apis::FileResourceCallback& callback,
148 const google_apis::ProgressCallback& progress_callback) override; 150 const google_apis::ProgressCallback& progress_callback) override;
149 google_apis::CancelCallback AuthorizeApp( 151 google_apis::CancelCallback AuthorizeApp(
150 const std::string& resource_id, 152 const std::string& resource_id,
151 const std::string& app_id, 153 const std::string& app_id,
152 const google_apis::AuthorizeAppCallback& callback) override; 154 const google_apis::AuthorizeAppCallback& callback) override;
153 google_apis::CancelCallback UninstallApp( 155 google_apis::CancelCallback UninstallApp(
154 const std::string& app_id, 156 const std::string& app_id,
155 const google_apis::EntryActionCallback& callback) override; 157 const google_apis::EntryActionCallback& callback) override;
156 google_apis::CancelCallback AddPermission( 158 google_apis::CancelCallback AddPermission(
157 const std::string& resource_id, 159 const std::string& resource_id,
158 const std::string& email, 160 const std::string& email,
159 google_apis::drive::PermissionRole role, 161 google_apis::drive::PermissionRole role,
160 const google_apis::EntryActionCallback& callback) override; 162 const google_apis::EntryActionCallback& callback) override;
161 scoped_ptr<BatchRequestConfiguratorInterface> StartBatchRequest() override; 163 scoped_ptr<BatchRequestConfiguratorInterface> StartBatchRequest() override;
162 }; 164 };
163 165
164 } // namespace drive 166 } // namespace drive
165 167
166 #endif // COMPONENTS_DRIVE_SERVICE_DUMMY_DRIVE_SERVICE_H_ 168 #endif // COMPONENTS_DRIVE_SERVICE_DUMMY_DRIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « components/drive/service/drive_service_interface.h ('k') | components/drive/service/dummy_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698