| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MEDIA_GALLERIES_LINUX_SNAPSHOT_FILE_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_LINUX_SNAPSHOT_FILE_DETAILS_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_SNAPSHOT_FILE_DETAILS_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_LINUX_SNAPSHOT_FILE_DETAILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
| 14 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" | 14 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" |
| 15 | 15 |
| 16 namespace chrome { | |
| 17 | |
| 18 // Used to represent snapshot file request params. | 16 // Used to represent snapshot file request params. |
| 19 struct SnapshotRequestInfo { | 17 struct SnapshotRequestInfo { |
| 20 SnapshotRequestInfo( | 18 SnapshotRequestInfo( |
| 21 const std::string& device_file_path, | 19 const std::string& device_file_path, |
| 22 const base::FilePath& snapshot_file_path, | 20 const base::FilePath& snapshot_file_path, |
| 23 const MTPDeviceAsyncDelegate::CreateSnapshotFileSuccessCallback& | 21 const MTPDeviceAsyncDelegate::CreateSnapshotFileSuccessCallback& |
| 24 success_callback, | 22 success_callback, |
| 25 const MTPDeviceAsyncDelegate::ErrorCallback& error_callback); | 23 const MTPDeviceAsyncDelegate::ErrorCallback& error_callback); |
| 26 ~SnapshotRequestInfo(); | 24 ~SnapshotRequestInfo(); |
| 27 | 25 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 102 |
| 105 // Number of bytes written into the snapshot file. | 103 // Number of bytes written into the snapshot file. |
| 106 uint32 bytes_written_; | 104 uint32 bytes_written_; |
| 107 | 105 |
| 108 // Whether an error occurred during file transfer. | 106 // Whether an error occurred during file transfer. |
| 109 bool error_occurred_; | 107 bool error_occurred_; |
| 110 | 108 |
| 111 DISALLOW_COPY_AND_ASSIGN(SnapshotFileDetails); | 109 DISALLOW_COPY_AND_ASSIGN(SnapshotFileDetails); |
| 112 }; | 110 }; |
| 113 | 111 |
| 114 } // namespace chrome | |
| 115 | |
| 116 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_SNAPSHOT_FILE_DETAILS_H_ | 112 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_SNAPSHOT_FILE_DETAILS_H_ |
| OLD | NEW |