OLD | NEW |
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 InitiateUploadNewFile( | 122 virtual void InitiateUploadNewFile( |
123 const FilePath& drive_file_path, | 123 const base::FilePath& drive_file_path, |
124 const std::string& content_type, | 124 const std::string& content_type, |
125 int64 content_length, | 125 int64 content_length, |
126 const GURL& parent_upload_url, | 126 const GURL& parent_upload_url, |
127 const std::string& title, | 127 const std::string& title, |
128 const InitiateUploadCallback& callback) OVERRIDE; | 128 const InitiateUploadCallback& callback) OVERRIDE; |
129 virtual void InitiateUploadExistingFile( | 129 virtual void InitiateUploadExistingFile( |
130 const FilePath& drive_file_path, | 130 const base::FilePath& drive_file_path, |
131 const std::string& content_type, | 131 const std::string& content_type, |
132 int64 content_length, | 132 int64 content_length, |
133 const GURL& upload_url, | 133 const GURL& upload_url, |
134 const std::string& etag, | 134 const std::string& etag, |
135 const InitiateUploadCallback& callback) OVERRIDE; | 135 const InitiateUploadCallback& callback) OVERRIDE; |
136 virtual void ResumeUpload(const ResumeUploadParams& params, | 136 virtual void ResumeUpload(const ResumeUploadParams& params, |
137 const UploadRangeCallback& callback) OVERRIDE; | 137 const UploadRangeCallback& callback) OVERRIDE; |
138 virtual void GetUploadStatus( | 138 virtual void GetUploadStatus( |
139 UploadMode upload_mode, | 139 UploadMode upload_mode, |
140 const base::FilePath& drive_file_path, | 140 const base::FilePath& drive_file_path, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 int resource_list_load_count_; | 175 int resource_list_load_count_; |
176 int account_metadata_load_count_; | 176 int account_metadata_load_count_; |
177 bool offline_; | 177 bool offline_; |
178 | 178 |
179 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); | 179 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); |
180 }; | 180 }; |
181 | 181 |
182 } // namespace google_apis | 182 } // namespace google_apis |
183 | 183 |
184 #endif // CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ | 184 #endif // CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ |
OLD | NEW |