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_GDATA_WAPI_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ |
6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 virtual void AddNewDirectory( | 106 virtual void AddNewDirectory( |
107 const std::string& parent_resource_id, | 107 const std::string& parent_resource_id, |
108 const std::string& directory_name, | 108 const std::string& directory_name, |
109 const GetResourceEntryCallback& callback) OVERRIDE; | 109 const GetResourceEntryCallback& callback) OVERRIDE; |
110 virtual void InitiateUpload( | 110 virtual void InitiateUpload( |
111 const InitiateUploadParams& params, | 111 const InitiateUploadParams& params, |
112 const InitiateUploadCallback& callback) OVERRIDE; | 112 const InitiateUploadCallback& callback) OVERRIDE; |
113 virtual void ResumeUpload( | 113 virtual void ResumeUpload( |
114 const ResumeUploadParams& params, | 114 const ResumeUploadParams& params, |
115 const ResumeUploadCallback& callback) OVERRIDE; | 115 const ResumeUploadCallback& callback) OVERRIDE; |
| 116 virtual void GetUploadState( |
| 117 const UploadMode upload_mode, |
| 118 const FilePath& drive_file_path, |
| 119 const GURL& upload_url, |
| 120 int64 content_length, |
| 121 const ResumeUploadCallback& callback) OVERRIDE; |
116 virtual void AuthorizeApp( | 122 virtual void AuthorizeApp( |
117 const GURL& edit_url, | 123 const GURL& edit_url, |
118 const std::string& app_id, | 124 const std::string& app_id, |
119 const AuthorizeAppCallback& callback) OVERRIDE; | 125 const AuthorizeAppCallback& callback) OVERRIDE; |
120 | 126 |
121 private: | 127 private: |
122 OperationRegistry* operation_registry() const; | 128 OperationRegistry* operation_registry() const; |
123 | 129 |
124 // AuthService::Observer override. | 130 // AuthService::Observer override. |
125 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; | 131 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; |
(...skipping 11 matching lines...) Expand all Loading... |
137 // reference, as they may outlive this object. | 143 // reference, as they may outlive this object. |
138 GDataWapiUrlGenerator url_generator_; | 144 GDataWapiUrlGenerator url_generator_; |
139 const std::string custom_user_agent_; | 145 const std::string custom_user_agent_; |
140 | 146 |
141 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); | 147 DISALLOW_COPY_AND_ASSIGN(GDataWapiService); |
142 }; | 148 }; |
143 | 149 |
144 } // namespace google_apis | 150 } // namespace google_apis |
145 | 151 |
146 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ | 152 #endif // CHROME_BROWSER_GOOGLE_APIS_GDATA_WAPI_SERVICE_H_ |
OLD | NEW |