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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/socket/fifo_packet.h

Issue 443693002: [NaCl SDK] nacl_io: Remove use of new/delete for data buffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 LIBRARIES_NACL_IO_FIFO_PACKET_H_ 5 #ifndef LIBRARIES_NACL_IO_FIFO_PACKET_H_
6 #define LIBRARIES_NACL_IO_FIFO_PACKET_H_ 6 #define LIBRARIES_NACL_IO_FIFO_PACKET_H_
7 7
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <list> 10 #include <list>
11 #include <vector>
12 11
13 #include "nacl_io/fifo_interface.h" 12 #include "nacl_io/fifo_interface.h"
14 #include "ppapi/c/pp_resource.h" 13 #include "ppapi/c/pp_resource.h"
15 14
16 #include "sdk_util/macros.h" 15 #include "sdk_util/macros.h"
17 16
18 namespace nacl_io { 17 namespace nacl_io {
19 18
20 class Packet; 19 class Packet;
21 20
(...skipping 28 matching lines...) Expand all
50 std::list<Packet*> packets_; 49 std::list<Packet*> packets_;
51 uint32_t max_bytes_; 50 uint32_t max_bytes_;
52 uint32_t cur_bytes_; 51 uint32_t cur_bytes_;
53 52
54 DISALLOW_COPY_AND_ASSIGN(FIFOPacket); 53 DISALLOW_COPY_AND_ASSIGN(FIFOPacket);
55 }; 54 };
56 55
57 } // namespace nacl_io 56 } // namespace nacl_io
58 57
59 #endif // LIBRARIES_NACL_IO_FIFO_PACKET_H_ 58 #endif // LIBRARIES_NACL_IO_FIFO_PACKET_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/osinttypes.h ('k') | native_client_sdk/src/libraries/nacl_io/socket/packet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698