| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_FILEAPI_MTP_DEVICE_ASYNC_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_DEVICE_ASYNC_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_DEVICE_ASYNC_DELEGATE_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_DEVICE_ASYNC_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void(const base::File::Info& file_info, | 55 void(const base::File::Info& file_info, |
| 56 int bytes_read)> ReadBytesSuccessCallback; | 56 int bytes_read)> ReadBytesSuccessCallback; |
| 57 | 57 |
| 58 struct ReadBytesRequest { | 58 struct ReadBytesRequest { |
| 59 ReadBytesRequest(uint32_t file_id, | 59 ReadBytesRequest(uint32_t file_id, |
| 60 net::IOBuffer* buf, | 60 net::IOBuffer* buf, |
| 61 int64_t offset, | 61 int64_t offset, |
| 62 int buf_len, | 62 int buf_len, |
| 63 const ReadBytesSuccessCallback& success_callback, | 63 const ReadBytesSuccessCallback& success_callback, |
| 64 const ErrorCallback& error_callback); | 64 const ErrorCallback& error_callback); |
| 65 ReadBytesRequest(const ReadBytesRequest& other); |
| 65 ~ReadBytesRequest(); | 66 ~ReadBytesRequest(); |
| 66 | 67 |
| 67 uint32_t file_id; | 68 uint32_t file_id; |
| 68 scoped_refptr<net::IOBuffer> buf; | 69 scoped_refptr<net::IOBuffer> buf; |
| 69 int64_t offset; | 70 int64_t offset; |
| 70 int buf_len; | 71 int buf_len; |
| 71 ReadBytesSuccessCallback success_callback; | 72 ReadBytesSuccessCallback success_callback; |
| 72 ErrorCallback error_callback; | 73 ErrorCallback error_callback; |
| 73 }; | 74 }; |
| 74 | 75 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 216 |
| 216 typedef base::Callback<void(MTPDeviceAsyncDelegate*)> | 217 typedef base::Callback<void(MTPDeviceAsyncDelegate*)> |
| 217 CreateMTPDeviceAsyncDelegateCallback; | 218 CreateMTPDeviceAsyncDelegateCallback; |
| 218 | 219 |
| 219 void CreateMTPDeviceAsyncDelegate( | 220 void CreateMTPDeviceAsyncDelegate( |
| 220 const base::FilePath::StringType& device_location, | 221 const base::FilePath::StringType& device_location, |
| 221 const bool read_only, | 222 const bool read_only, |
| 222 const CreateMTPDeviceAsyncDelegateCallback& callback); | 223 const CreateMTPDeviceAsyncDelegateCallback& callback); |
| 223 | 224 |
| 224 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_DEVICE_ASYNC_DELEGATE_H_ | 225 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_DEVICE_ASYNC_DELEGATE_H_ |
| OLD | NEW |