Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / media_galleries / fileapi / mtp_device_async_delegate.cc
blobcc091e9a94c88e9ac401b5779c0f952b8d00e0f2
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
3 // found in the LICENSE file.
5 #include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h"
7 #include "net/base/io_buffer.h"
9 MTPDeviceAsyncDelegate::ReadBytesRequest::ReadBytesRequest(
10 uint32 file_id, net::IOBuffer* buf, int64 offset, int buf_len,
11 const ReadBytesSuccessCallback& success_callback,
12 const ErrorCallback& error_callback)
13 : file_id(file_id),
14 buf(buf),
15 offset(offset),
16 buf_len(buf_len),
17 success_callback(success_callback),
18 error_callback(error_callback) {
21 MTPDeviceAsyncDelegate::ReadBytesRequest::~ReadBytesRequest() {}