Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / media_galleries / linux / snapshot_file_details.h
index c36d6e3..0457210 100644 (file)
 // Used to represent snapshot file request params.
 struct SnapshotRequestInfo {
   SnapshotRequestInfo(
-      const std::string& device_file_path,
+      uint32 file_id,
       const base::FilePath& snapshot_file_path,
       const MTPDeviceAsyncDelegate::CreateSnapshotFileSuccessCallback&
           success_callback,
       const MTPDeviceAsyncDelegate::ErrorCallback& error_callback);
   ~SnapshotRequestInfo();
 
-  // MTP device file path.
-  const std::string device_file_path;
+  // MTP device file id.
+  const uint32 file_id;
 
   // Local platform path of the snapshot file.
   const base::FilePath snapshot_file_path;
@@ -47,8 +47,8 @@ class SnapshotFileDetails {
 
   ~SnapshotFileDetails();
 
-  std::string device_file_path() const {
-    return request_info_.device_file_path;
+  uint32 file_id() const {
+    return request_info_.file_id;
   }
 
   base::FilePath snapshot_file_path() const {
@@ -59,7 +59,7 @@ class SnapshotFileDetails {
     return bytes_written_;
   }
 
-  const base::File::Info file_info() const {
+  const base::File::Info& file_info() const {
     return file_info_;
   }