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

Side by Side Diff: chrome/browser/google_apis/drive_api_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_DRIVE_API_SERVICE_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 const std::string& resource_id, 98 const std::string& resource_id,
99 const EntryActionCallback& callback) OVERRIDE; 99 const EntryActionCallback& callback) OVERRIDE;
100 virtual void RemoveResourceFromDirectory( 100 virtual void RemoveResourceFromDirectory(
101 const std::string& parent_resource_id, 101 const std::string& parent_resource_id,
102 const std::string& resource_id, 102 const std::string& resource_id,
103 const EntryActionCallback& callback) OVERRIDE; 103 const EntryActionCallback& callback) OVERRIDE;
104 virtual void AddNewDirectory( 104 virtual void AddNewDirectory(
105 const std::string& parent_resource_id, 105 const std::string& parent_resource_id,
106 const std::string& directory_name, 106 const std::string& directory_name,
107 const GetResourceEntryCallback& callback) OVERRIDE; 107 const GetResourceEntryCallback& callback) OVERRIDE;
108 virtual void InitiateUpload( 108 virtual void InitiateUploadNewFile(
109 const InitiateUploadParams& params, 109 const FilePath& drive_file_path,
110 const std::string& content_type,
111 int64 content_length,
112 const GURL& parent_upload_url,
113 const std::string& title,
114 const InitiateUploadCallback& callback) OVERRIDE;
115 virtual void InitiateUploadExistingFile(
116 const FilePath& drive_file_path,
117 const std::string& content_type,
118 int64 content_length,
119 const GURL& upload_url,
120 const std::string& etag,
110 const InitiateUploadCallback& callback) OVERRIDE; 121 const InitiateUploadCallback& callback) OVERRIDE;
111 virtual void ResumeUpload( 122 virtual void ResumeUpload(
112 const ResumeUploadParams& params, 123 const ResumeUploadParams& params,
113 const UploadRangeCallback& callback) OVERRIDE; 124 const UploadRangeCallback& callback) OVERRIDE;
114 virtual void GetUploadStatus( 125 virtual void GetUploadStatus(
115 UploadMode upload_mode, 126 UploadMode upload_mode,
116 const base::FilePath& drive_file_path, 127 const base::FilePath& drive_file_path,
117 const GURL& upload_url, 128 const GURL& upload_url,
118 int64 content_length, 129 int64 content_length,
119 const UploadRangeCallback& callback) OVERRIDE; 130 const UploadRangeCallback& callback) OVERRIDE;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 ObserverList<DriveServiceObserver> observers_; 168 ObserverList<DriveServiceObserver> observers_;
158 DriveApiUrlGenerator url_generator_; 169 DriveApiUrlGenerator url_generator_;
159 const std::string custom_user_agent_; 170 const std::string custom_user_agent_;
160 171
161 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); 172 DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
162 }; 173 };
163 174
164 } // namespace google_apis 175 } // namespace google_apis
165 176
166 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_ 177 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/base_operations.cc ('k') | chrome/browser/google_apis/drive_api_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698