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

Unified Diff: device/media_transfer_protocol/media_transfer_protocol_daemon_client.h

Issue 437313002: Media Galleries: Omit ById in various method names, since all operations are now by id. (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 side-by-side diff with in-line comments
Download patch
Index: device/media_transfer_protocol/media_transfer_protocol_daemon_client.h
diff --git a/device/media_transfer_protocol/media_transfer_protocol_daemon_client.h b/device/media_transfer_protocol/media_transfer_protocol_daemon_client.h
index 2ea92d88aaadb86d0feaf1a8e5147e0f5cb5ed2b..821f277b887662f79a57b9c21fcf93181fd88930 100644
--- a/device/media_transfer_protocol/media_transfer_protocol_daemon_client.h
+++ b/device/media_transfer_protocol/media_transfer_protocol_daemon_client.h
@@ -125,17 +125,17 @@ class MediaTransferProtocolDaemonClient {
const GetFileInfoCallback& callback,
const ErrorCallback& error_callback) = 0;
- // TODO(thestig): Rename to ReadFileChunk.
- // Calls ReadFilePathById method. |callback| is called after the method call
+ // Calls ReadFileChunj method. |callback| is called after the method call
tommycli 2014/08/04 19:54:33 typo
Lei Zhang 2014/08/04 20:10:16 Done.
// succeeds, otherwise, |error_callback| is called.
// |file_id| is a MTP-device specific id for a file.
+ // |offset| is the offset into the file.
// |bytes_to_read| cannot exceed 1 MiB.
- virtual void ReadFileChunkById(const std::string& handle,
- uint32 file_id,
- uint32 offset,
- uint32 bytes_to_read,
- const ReadFileCallback& callback,
- const ErrorCallback& error_callback) = 0;
+ virtual void ReadFileChunk(const std::string& handle,
+ uint32 file_id,
+ uint32 offset,
+ uint32 bytes_to_read,
+ const ReadFileCallback& callback,
+ const ErrorCallback& error_callback) = 0;
// Registers given callback for events. Should only be called once.
// |storage_event_handler| is called when a mtp storage attach or detach

Powered by Google App Engine
This is Rietveld 408576698