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_DRIVE_DRIVE_SERVICE_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ |
6 #define CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ | 6 #define CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 const std::string& resource_id, | 228 const std::string& resource_id, |
229 const google_apis::FileResourceCallback& callback) = 0; | 229 const google_apis::FileResourceCallback& callback) = 0; |
230 | 230 |
231 // Fetches an url for the sharing dialog for a single entry with id | 231 // Fetches an url for the sharing dialog for a single entry with id |
232 // |resource_id|, to be embedded in a webview or an iframe with origin | 232 // |resource_id|, to be embedded in a webview or an iframe with origin |
233 // |embed_origin|. The url is returned via |callback| with results on the | 233 // |embed_origin|. The url is returned via |callback| with results on the |
234 // calling thread. |callback| must not be null. | 234 // calling thread. |callback| must not be null. |
235 virtual google_apis::CancelCallback GetShareUrl( | 235 virtual google_apis::CancelCallback GetShareUrl( |
236 const std::string& resource_id, | 236 const std::string& resource_id, |
237 const GURL& embed_origin, | 237 const GURL& embed_origin, |
238 const google_apis::GetShareUrlCallback& callback) = 0; | 238 const google_apis::GetUrlCallback& callback) = 0; |
239 | 239 |
240 // Gets the about resource information from the server. | 240 // Gets the about resource information from the server. |
241 // Upon completion, invokes |callback| with results on the calling thread. | 241 // Upon completion, invokes |callback| with results on the calling thread. |
242 // |callback| must not be null. | 242 // |callback| must not be null. |
243 virtual google_apis::CancelCallback GetAboutResource( | 243 virtual google_apis::CancelCallback GetAboutResource( |
244 const google_apis::AboutResourceCallback& callback) = 0; | 244 const google_apis::AboutResourceCallback& callback) = 0; |
245 | 245 |
246 // Gets the application information from the server. | 246 // Gets the application information from the server. |
247 // Upon completion, invokes |callback| with results on the calling thread. | 247 // Upon completion, invokes |callback| with results on the calling thread. |
248 // |callback| must not be null. | 248 // |callback| must not be null. |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 virtual google_apis::CancelCallback AddPermission( | 420 virtual google_apis::CancelCallback AddPermission( |
421 const std::string& resource_id, | 421 const std::string& resource_id, |
422 const std::string& email, | 422 const std::string& email, |
423 google_apis::drive::PermissionRole role, | 423 google_apis::drive::PermissionRole role, |
424 const google_apis::EntryActionCallback& callback) = 0; | 424 const google_apis::EntryActionCallback& callback) = 0; |
425 }; | 425 }; |
426 | 426 |
427 } // namespace drive | 427 } // namespace drive |
428 | 428 |
429 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ | 429 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ |
OLD | NEW |