Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: chrome/browser/drive/drive_service_interface.h

Issue 449763002: Remove DriveServiceInterface::RenameResource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/dummy_drive_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // Upon completion, invokes |callback| with results on the calling thread. 283 // Upon completion, invokes |callback| with results on the calling thread.
284 // |callback| must not be null. 284 // |callback| must not be null.
285 virtual google_apis::CancelCallback UpdateResource( 285 virtual google_apis::CancelCallback UpdateResource(
286 const std::string& resource_id, 286 const std::string& resource_id,
287 const std::string& parent_resource_id, 287 const std::string& parent_resource_id,
288 const std::string& new_title, 288 const std::string& new_title,
289 const base::Time& last_modified, 289 const base::Time& last_modified,
290 const base::Time& last_viewed_by_me, 290 const base::Time& last_viewed_by_me,
291 const google_apis::FileResourceCallback& callback) = 0; 291 const google_apis::FileResourceCallback& callback) = 0;
292 292
293 // Renames a document or collection identified by its |resource_id|
294 // to the UTF-8 encoded |new_title|. Upon completion,
295 // invokes |callback| with results on the calling thread.
296 // |callback| must not be null.
297 virtual google_apis::CancelCallback RenameResource(
298 const std::string& resource_id,
299 const std::string& new_title,
300 const google_apis::EntryActionCallback& callback) = 0;
301
302 // Adds a resource (document, file, or collection) identified by its 293 // Adds a resource (document, file, or collection) identified by its
303 // |resource_id| to a collection represented by the |parent_resource_id|. 294 // |resource_id| to a collection represented by the |parent_resource_id|.
304 // Upon completion, invokes |callback| with results on the calling thread. 295 // Upon completion, invokes |callback| with results on the calling thread.
305 // |callback| must not be null. 296 // |callback| must not be null.
306 virtual google_apis::CancelCallback AddResourceToDirectory( 297 virtual google_apis::CancelCallback AddResourceToDirectory(
307 const std::string& parent_resource_id, 298 const std::string& parent_resource_id,
308 const std::string& resource_id, 299 const std::string& resource_id,
309 const google_apis::EntryActionCallback& callback) = 0; 300 const google_apis::EntryActionCallback& callback) = 0;
310 301
311 // Removes a resource (document, file, collection) identified by its 302 // Removes a resource (document, file, collection) identified by its
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 virtual google_apis::CancelCallback AddPermission( 403 virtual google_apis::CancelCallback AddPermission(
413 const std::string& resource_id, 404 const std::string& resource_id,
414 const std::string& email, 405 const std::string& email,
415 google_apis::drive::PermissionRole role, 406 google_apis::drive::PermissionRole role,
416 const google_apis::EntryActionCallback& callback) = 0; 407 const google_apis::EntryActionCallback& callback) = 0;
417 }; 408 };
418 409
419 } // namespace drive 410 } // namespace drive
420 411
421 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ 412 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/drive/drive_api_service.cc ('k') | chrome/browser/drive/dummy_drive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698