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_FAKE_DRIVE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ |
6 #define CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ | 6 #define CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ |
7 | 7 |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/google_apis/drive_service_interface.h" | 9 #include "chrome/browser/google_apis/drive_service_interface.h" |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 const std::string& resource_id, | 116 const std::string& resource_id, |
117 const EntryActionCallback& callback) OVERRIDE; | 117 const EntryActionCallback& callback) OVERRIDE; |
118 virtual void AddNewDirectory( | 118 virtual void AddNewDirectory( |
119 const std::string& parent_resource_id, | 119 const std::string& parent_resource_id, |
120 const std::string& directory_name, | 120 const std::string& directory_name, |
121 const GetResourceEntryCallback& callback) OVERRIDE; | 121 const GetResourceEntryCallback& callback) OVERRIDE; |
122 virtual void InitiateUpload(const InitiateUploadParams& params, | 122 virtual void InitiateUpload(const InitiateUploadParams& params, |
123 const InitiateUploadCallback& callback) OVERRIDE; | 123 const InitiateUploadCallback& callback) OVERRIDE; |
124 virtual void ResumeUpload(const ResumeUploadParams& params, | 124 virtual void ResumeUpload(const ResumeUploadParams& params, |
125 const ResumeUploadCallback& callback) OVERRIDE; | 125 const ResumeUploadCallback& callback) OVERRIDE; |
| 126 virtual void GetUploadState(const UploadMode upload_mode, |
| 127 const FilePath& drive_file_path, |
| 128 const GURL& upload_url, |
| 129 int64 content_length, |
| 130 const ResumeUploadCallback& callback) OVERRIDE; |
126 virtual void AuthorizeApp(const GURL& edit_url, | 131 virtual void AuthorizeApp(const GURL& edit_url, |
127 const std::string& app_id, | 132 const std::string& app_id, |
128 const AuthorizeAppCallback& callback) OVERRIDE; | 133 const AuthorizeAppCallback& callback) OVERRIDE; |
129 | 134 |
130 private: | 135 private: |
131 // Returns a pointer to the entry that matches |resource_id|, or NULL if | 136 // Returns a pointer to the entry that matches |resource_id|, or NULL if |
132 // not found. | 137 // not found. |
133 base::DictionaryValue* FindEntryByResourceId(const std::string& resource_id); | 138 base::DictionaryValue* FindEntryByResourceId(const std::string& resource_id); |
134 | 139 |
135 // Returns a pointer to the entry that matches |content_url|, or NULL if | 140 // Returns a pointer to the entry that matches |content_url|, or NULL if |
(...skipping 17 matching lines...) Expand all Loading... |
153 int resource_list_load_count_; | 158 int resource_list_load_count_; |
154 int account_metadata_load_count_; | 159 int account_metadata_load_count_; |
155 bool offline_; | 160 bool offline_; |
156 | 161 |
157 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); | 162 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); |
158 }; | 163 }; |
159 | 164 |
160 } // namespace google_apis | 165 } // namespace google_apis |
161 | 166 |
162 #endif // CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ | 167 #endif // CHROME_BROWSER_GOOGLE_APIS_FAKE_DRIVE_SERVICE_H_ |
OLD | NEW |