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_WIN_SNAPSHOT_FILE_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_WIN_SNAPSHOT_FILE_DETAILS_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_SNAPSHOT_FILE_DETAILS_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_WIN_SNAPSHOT_FILE_DETAILS_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
10 #include "base/win/scoped_comptr.h" | 10 #include "base/win/scoped_comptr.h" |
11 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" | 11 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" |
12 | 12 |
13 namespace chrome { | |
14 | |
15 // Structure used to represent snapshot file request params. | 13 // Structure used to represent snapshot file request params. |
16 struct SnapshotRequestInfo { | 14 struct SnapshotRequestInfo { |
17 SnapshotRequestInfo( | 15 SnapshotRequestInfo( |
18 const base::FilePath& device_file_path, | 16 const base::FilePath& device_file_path, |
19 const base::FilePath& snapshot_file_path, | 17 const base::FilePath& snapshot_file_path, |
20 const MTPDeviceAsyncDelegate::CreateSnapshotFileSuccessCallback& | 18 const MTPDeviceAsyncDelegate::CreateSnapshotFileSuccessCallback& |
21 success_callback, | 19 success_callback, |
22 const MTPDeviceAsyncDelegate::ErrorCallback& error_callback); | 20 const MTPDeviceAsyncDelegate::ErrorCallback& error_callback); |
23 | 21 |
24 // Device file path. | 22 // Device file path. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 base::win::ScopedComPtr<IStream> file_stream_; | 83 base::win::ScopedComPtr<IStream> file_stream_; |
86 | 84 |
87 // The number of bytes of data to read from the |file_stream| object | 85 // The number of bytes of data to read from the |file_stream| object |
88 // during each IStream::Read() operation. | 86 // during each IStream::Read() operation. |
89 DWORD optimal_transfer_size_; | 87 DWORD optimal_transfer_size_; |
90 | 88 |
91 // Total number of bytes written into the snapshot file. | 89 // Total number of bytes written into the snapshot file. |
92 DWORD bytes_written_; | 90 DWORD bytes_written_; |
93 }; | 91 }; |
94 | 92 |
95 } // namespace chrome | |
96 | |
97 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_SNAPSHOT_FILE_DETAILS_H_ | 93 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_SNAPSHOT_FILE_DETAILS_H_ |
OLD | NEW |