15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file.
45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h"
65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "net/base/io_buffer.h"
85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)MTPDeviceAsyncDelegate::ReadBytesRequest::ReadBytesRequest(
10116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch    uint32 file_id, net::IOBuffer* buf, int64 offset, int buf_len,
115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    const ReadBytesSuccessCallback& success_callback,
125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    const ErrorCallback& error_callback)
13116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch    : file_id(file_id),
145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)      buf(buf),
155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)      offset(offset),
165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)      buf_len(buf_len),
175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)      success_callback(success_callback),
185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)      error_callback(error_callback) {
195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)}
205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)MTPDeviceAsyncDelegate::ReadBytesRequest::~ReadBytesRequest() {}
22