Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Side by Side Diff: chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698