| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/files/file.h" | 13 #include "base/files/file.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/macros.h" |
| 15 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" | 16 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" |
| 16 | 17 |
| 17 // Used to represent snapshot file request params. | 18 // Used to represent snapshot file request params. |
| 18 struct SnapshotRequestInfo { | 19 struct SnapshotRequestInfo { |
| 19 SnapshotRequestInfo( | 20 SnapshotRequestInfo( |
| 20 uint32_t file_id, | 21 uint32_t file_id, |
| 21 const base::FilePath& snapshot_file_path, | 22 const base::FilePath& snapshot_file_path, |
| 22 const MTPDeviceAsyncDelegate::CreateSnapshotFileSuccessCallback& | 23 const MTPDeviceAsyncDelegate::CreateSnapshotFileSuccessCallback& |
| 23 success_callback, | 24 success_callback, |
| 24 const MTPDeviceAsyncDelegate::ErrorCallback& error_callback); | 25 const MTPDeviceAsyncDelegate::ErrorCallback& error_callback); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // Number of bytes written into the snapshot file. | 101 // Number of bytes written into the snapshot file. |
| 101 uint32_t bytes_written_; | 102 uint32_t bytes_written_; |
| 102 | 103 |
| 103 // Whether an error occurred during file transfer. | 104 // Whether an error occurred during file transfer. |
| 104 bool error_occurred_; | 105 bool error_occurred_; |
| 105 | 106 |
| 106 DISALLOW_COPY_AND_ASSIGN(SnapshotFileDetails); | 107 DISALLOW_COPY_AND_ASSIGN(SnapshotFileDetails); |
| 107 }; | 108 }; |
| 108 | 109 |
| 109 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_SNAPSHOT_FILE_DETAILS_H_ | 110 #endif // CHROME_BROWSER_MEDIA_GALLERIES_LINUX_SNAPSHOT_FILE_DETAILS_H_ |
| OLD | NEW |