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

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

Issue 12235002: Add GetUploadStatus method to the DriveServiceInterface. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
« no previous file with comments | « no previous file | chrome/browser/google_apis/drive_api_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 InitiateUpload(
109 const InitiateUploadParams& params, 109 const InitiateUploadParams& params,
110 const InitiateUploadCallback& callback) OVERRIDE; 110 const InitiateUploadCallback& callback) OVERRIDE;
111 virtual void ResumeUpload( 111 virtual void ResumeUpload(
112 const ResumeUploadParams& params, 112 const ResumeUploadParams& params,
113 const ResumeUploadCallback& callback) OVERRIDE; 113 const UploadRangeCallback& callback) OVERRIDE;
114 virtual void GetUploadStatus(
115 UploadMode upload_mode,
116 const FilePath& drive_file_path,
117 const GURL& upload_url,
118 int64 content_length,
119 const UploadRangeCallback& callback) OVERRIDE;
114 virtual void AuthorizeApp( 120 virtual void AuthorizeApp(
115 const GURL& edit_url, 121 const GURL& edit_url,
116 const std::string& app_id, 122 const std::string& app_id,
117 const AuthorizeAppCallback& callback) OVERRIDE; 123 const AuthorizeAppCallback& callback) OVERRIDE;
118 124
119 private: 125 private:
120 OperationRegistry* operation_registry() const; 126 OperationRegistry* operation_registry() const;
121 127
122 // Fetches a changelist from |url| with |start_changestamp|, using Drive V2 128 // Fetches a changelist from |url| with |start_changestamp|, using Drive V2
123 // API. If this URL is empty the call will use the default URL. Specify |url| 129 // API. If this URL is empty the call will use the default URL. Specify |url|
(...skipping 27 matching lines...) Expand all
151 ObserverList<DriveServiceObserver> observers_; 157 ObserverList<DriveServiceObserver> observers_;
152 DriveApiUrlGenerator url_generator_; 158 DriveApiUrlGenerator url_generator_;
153 const std::string custom_user_agent_; 159 const std::string custom_user_agent_;
154 160
155 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); 161 DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
156 }; 162 };
157 163
158 } // namespace google_apis 164 } // namespace google_apis
159 165
160 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_ 166 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/google_apis/drive_api_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698