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

Unified Diff: chrome/browser/chromeos/mtp/media_transfer_protocol_manager.h

Issue 10913048: CrOS: Convert MediaTransferProtocolDaemonClient to use protobufs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments Created 8 years, 3 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
« no previous file with comments | « build/protoc.gypi ('k') | chrome/browser/chromeos/mtp/media_transfer_protocol_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/mtp/media_transfer_protocol_manager.h
===================================================================
--- chrome/browser/chromeos/mtp/media_transfer_protocol_manager.h (revision 155895)
+++ chrome/browser/chromeos/mtp/media_transfer_protocol_manager.h (working copy)
@@ -8,8 +8,12 @@
#include <string>
#include <vector>
+#include "base/callback.h"
#include "chromeos/dbus/media_transfer_protocol_daemon_client.h"
+class MtpFileEntry;
+class MtpStorageInfo;
+
namespace chromeos {
namespace mtp {
@@ -30,7 +34,7 @@
// A callback to handle the result of ReadDirectoryByPath/Id.
// The first argument is a vector of file entries.
// The second argument is true if there was an error.
- typedef base::Callback<void(const std::vector<FileEntry>& file_entries,
+ typedef base::Callback<void(const std::vector<MtpFileEntry>& file_entries,
bool error)> ReadDirectoryCallback;
// A callback to handle the result of ReadFileByPath/Id.
@@ -43,7 +47,7 @@
// A callback to handle the result of GetFileInfoByPath/Id.
// The first argument is a file entry.
// The second argument is true if there was an error.
- typedef base::Callback<void(const FileEntry& file_entry,
+ typedef base::Callback<void(const MtpFileEntry& file_entry,
bool error)> GetFileInfoCallback;
// Implement this interface to be notified about MTP storage
@@ -70,7 +74,7 @@
// On success, returns the the metadata for |storage_name|.
// Otherwise returns NULL.
- virtual const StorageInfo* GetStorageInfo(
+ virtual const MtpStorageInfo* GetStorageInfo(
const std::string& storage_name) const = 0;
// Opens |storage_name| in |mode| and runs |callback|.
« no previous file with comments | « build/protoc.gypi ('k') | chrome/browser/chromeos/mtp/media_transfer_protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698