| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ResumeUploadCallback& callback) OVERRIDE; |
| 114 virtual void GetUploadState( |
| 115 const UploadMode upload_mode, |
| 116 const FilePath& drive_file_path, |
| 117 const GURL& upload_url, |
| 118 int64 content_length, |
| 119 const ResumeUploadCallback& 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 28 matching lines...) Expand all Loading... |
| 152 ObserverList<DriveServiceObserver> observers_; | 158 ObserverList<DriveServiceObserver> observers_; |
| 153 DriveApiUrlGenerator url_generator_; | 159 DriveApiUrlGenerator url_generator_; |
| 154 const std::string custom_user_agent_; | 160 const std::string custom_user_agent_; |
| 155 | 161 |
| 156 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); | 162 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); |
| 157 }; | 163 }; |
| 158 | 164 |
| 159 } // namespace google_apis | 165 } // namespace google_apis |
| 160 | 166 |
| 161 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_ | 167 #endif // CHROME_BROWSER_GOOGLE_APIS_DRIVE_API_SERVICE_H_ |
| OLD | NEW |