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_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 Loading... |
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 Loading... |
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_ |
OLD | NEW |