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.h" | 8 #include "base/files/file.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/win/scoped_comptr.h" | 10 #include "base/win/scoped_comptr.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 SnapshotRequestInfo request_info() const { | 49 SnapshotRequestInfo request_info() const { |
50 return request_info_; | 50 return request_info_; |
51 } | 51 } |
52 | 52 |
53 base::File::Info file_info() const { | 53 base::File::Info file_info() const { |
54 return file_info_; | 54 return file_info_; |
55 } | 55 } |
56 | 56 |
57 IStream* device_file_stream() const { | 57 IStream* device_file_stream() const { |
58 return file_stream_.get(); | 58 return file_stream_.Get(); |
59 } | 59 } |
60 | 60 |
61 DWORD optimal_transfer_size() const { | 61 DWORD optimal_transfer_size() const { |
62 return optimal_transfer_size_; | 62 return optimal_transfer_size_; |
63 } | 63 } |
64 | 64 |
65 // Returns true if the data contents of the device file is written to the | 65 // Returns true if the data contents of the device file is written to the |
66 // snapshot file. | 66 // snapshot file. |
67 bool IsSnapshotFileWriteComplete() const; | 67 bool IsSnapshotFileWriteComplete() const; |
68 | 68 |
(...skipping 18 matching lines...) Expand all Loading... |
87 | 87 |
88 // The number of bytes of data to read from the |file_stream| object | 88 // The number of bytes of data to read from the |file_stream| object |
89 // during each IStream::Read() operation. | 89 // during each IStream::Read() operation. |
90 DWORD optimal_transfer_size_; | 90 DWORD optimal_transfer_size_; |
91 | 91 |
92 // Total number of bytes written into the snapshot file. | 92 // Total number of bytes written into the snapshot file. |
93 DWORD bytes_written_; | 93 DWORD bytes_written_; |
94 }; | 94 }; |
95 | 95 |
96 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_SNAPSHOT_FILE_DETAILS_H_ | 96 #endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_SNAPSHOT_FILE_DETAILS_H_ |
OLD | NEW |