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

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

Issue 100903005: drive: Remove unused DriveServiceInterface::TouchResource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 "google_apis/drive/auth_service_interface.h" 10 #include "google_apis/drive/auth_service_interface.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 249
250 // Renames a document or collection identified by its |resource_id| 250 // Renames a document or collection identified by its |resource_id|
251 // to the UTF-8 encoded |new_title|. Upon completion, 251 // to the UTF-8 encoded |new_title|. Upon completion,
252 // invokes |callback| with results on the calling thread. 252 // invokes |callback| with results on the calling thread.
253 // |callback| must not be null. 253 // |callback| must not be null.
254 virtual google_apis::CancelCallback RenameResource( 254 virtual google_apis::CancelCallback RenameResource(
255 const std::string& resource_id, 255 const std::string& resource_id,
256 const std::string& new_title, 256 const std::string& new_title,
257 const google_apis::EntryActionCallback& callback) = 0; 257 const google_apis::EntryActionCallback& callback) = 0;
258 258
259 // Touches the resource with |resource_id|.
260 // Its modifiedDate and lastViewedByMeDate fields on the server will be
261 // updated to |modified_date| and |last_viewed_by_me_date| respectively.
262 // Upon completion, invokes |callback| with the updated resource data.
263 // |modified_date|, |last_viewed_by_me_date| and |callback| must not be null.
264 virtual google_apis::CancelCallback TouchResource(
265 const std::string& resource_id,
266 const base::Time& modified_date,
267 const base::Time& last_viewed_by_me_date,
268 const google_apis::GetResourceEntryCallback& callback) = 0;
269
270 // Adds a resource (document, file, or collection) identified by its 259 // Adds a resource (document, file, or collection) identified by its
271 // |resource_id| to a collection represented by the |parent_resource_id|. 260 // |resource_id| to a collection represented by the |parent_resource_id|.
272 // Upon completion, invokes |callback| with results on the calling thread. 261 // Upon completion, invokes |callback| with results on the calling thread.
273 // |callback| must not be null. 262 // |callback| must not be null.
274 virtual google_apis::CancelCallback AddResourceToDirectory( 263 virtual google_apis::CancelCallback AddResourceToDirectory(
275 const std::string& parent_resource_id, 264 const std::string& parent_resource_id,
276 const std::string& resource_id, 265 const std::string& resource_id,
277 const google_apis::EntryActionCallback& callback) = 0; 266 const google_apis::EntryActionCallback& callback) = 0;
278 267
279 // Removes a resource (document, file, collection) identified by its 268 // Removes a resource (document, file, collection) identified by its
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 // 374 //
386 // |callback| must not be null. 375 // |callback| must not be null.
387 virtual google_apis::CancelCallback GetRemainingResourceList( 376 virtual google_apis::CancelCallback GetRemainingResourceList(
388 const GURL& next_link, 377 const GURL& next_link,
389 const google_apis::GetResourceListCallback& callback) = 0; 378 const google_apis::GetResourceListCallback& callback) = 0;
390 }; 379 };
391 380
392 } // namespace drive 381 } // namespace drive
393 382
394 #endif // CHROME_BROWSER_DRIVE_DRIVE_SERVICE_INTERFACE_H_ 383 #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