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

Side by Side Diff: chrome/browser/devtools/device/usb/android_usb_device.h

Issue 297853003: Use IOBufferWithSize instead of storing IOBuffer and size separately. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/devtools/device/usb/android_usb_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 bool is_connected_; 147 bool is_connected_;
148 bool signature_sent_; 148 bool signature_sent_;
149 149
150 // Created sockets info 150 // Created sockets info
151 uint32 last_socket_id_; 151 uint32 last_socket_id_;
152 typedef std::map<uint32, AndroidUsbSocket*> AndroidUsbSockets; 152 typedef std::map<uint32, AndroidUsbSocket*> AndroidUsbSockets;
153 AndroidUsbSockets sockets_; 153 AndroidUsbSockets sockets_;
154 154
155 // Outgoing bulk queue 155 // Outgoing bulk queue
156 typedef std::pair<scoped_refptr<net::IOBuffer>, size_t> BulkMessage; 156 typedef scoped_refptr<net::IOBufferWithSize> BulkMessage;
157 std::queue<BulkMessage> outgoing_queue_; 157 std::queue<BulkMessage> outgoing_queue_;
158 158
159 // Outgoing messages pending connect 159 // Outgoing messages pending connect
160 typedef std::vector<scoped_refptr<AdbMessage> > PendingMessages; 160 typedef std::vector<scoped_refptr<AdbMessage> > PendingMessages;
161 PendingMessages pending_messages_; 161 PendingMessages pending_messages_;
162 162
163 base::WeakPtrFactory<AndroidUsbDevice> weak_factory_; 163 base::WeakPtrFactory<AndroidUsbDevice> weak_factory_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(AndroidUsbDevice); 165 DISALLOW_COPY_AND_ASSIGN(AndroidUsbDevice);
166 }; 166 };
167 167
168 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_ 168 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_USB_ANDROID_USB_DEVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/device/usb/android_usb_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698