OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" | 5 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h" |
6 | 6 |
7 #include "net/base/io_buffer.h" | 7 #include "net/base/io_buffer.h" |
8 | 8 |
9 MTPDeviceAsyncDelegate::ReadBytesRequest::ReadBytesRequest( | 9 MTPDeviceAsyncDelegate::ReadBytesRequest::ReadBytesRequest( |
10 const std::string& device_file_relative_path, | 10 uint32 file_id, net::IOBuffer* buf, int64 offset, int buf_len, |
11 net::IOBuffer* buf, int64 offset, int buf_len, | |
12 const ReadBytesSuccessCallback& success_callback, | 11 const ReadBytesSuccessCallback& success_callback, |
13 const ErrorCallback& error_callback) | 12 const ErrorCallback& error_callback) |
14 : device_file_relative_path(device_file_relative_path), | 13 : file_id(file_id), |
15 buf(buf), | 14 buf(buf), |
16 offset(offset), | 15 offset(offset), |
17 buf_len(buf_len), | 16 buf_len(buf_len), |
18 success_callback(success_callback), | 17 success_callback(success_callback), |
19 error_callback(error_callback) { | 18 error_callback(error_callback) { |
20 } | 19 } |
21 | 20 |
22 MTPDeviceAsyncDelegate::ReadBytesRequest::~ReadBytesRequest() {} | 21 MTPDeviceAsyncDelegate::ReadBytesRequest::~ReadBytesRequest() {} |
OLD | NEW |