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

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

Issue 2554863002: Cleanup remaining class/struct fwd declarations (Closed)
Patch Set: Style fixes Created 4 years 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 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_SOCKET_TCP_EVENT_EMITTER_H_ 5 #ifndef LIBRARIES_NACL_IO_SOCKET_TCP_EVENT_EMITTER_H_
6 #define LIBRARIES_NACL_IO_SOCKET_TCP_EVENT_EMITTER_H_ 6 #define LIBRARIES_NACL_IO_SOCKET_TCP_EVENT_EMITTER_H_
7 7
8 #include "nacl_io/fifo_char.h" 8 #include "nacl_io/fifo_char.h"
9 #include "nacl_io/stream/stream_event_emitter.h" 9 #include "nacl_io/stream/stream_event_emitter.h"
10 10
11 #include <ppapi/c/pp_resource.h> 11 #include <ppapi/c/pp_resource.h>
12 12
13 #include "sdk_util/macros.h" 13 #include "sdk_util/macros.h"
14 #include "sdk_util/scoped_ref.h" 14 #include "sdk_util/scoped_ref.h"
15 15
16 namespace nacl_io { 16 namespace nacl_io {
17 17
18 class TcpEventEmitter; 18 class TcpEventEmitter;
19 class Node;
20 19
21 typedef sdk_util::ScopedRef<TcpEventEmitter> ScopedTcpEventEmitter; 20 typedef sdk_util::ScopedRef<TcpEventEmitter> ScopedTcpEventEmitter;
22 21
23 class TcpEventEmitter : public StreamEventEmitter { 22 class TcpEventEmitter : public StreamEventEmitter {
24 public: 23 public:
25 TcpEventEmitter(size_t rsize, size_t wsize); 24 TcpEventEmitter(size_t rsize, size_t wsize);
26 25
27 uint32_t ReadIn_Locked(char* buffer, uint32_t len); 26 uint32_t ReadIn_Locked(char* buffer, uint32_t len);
28 uint32_t WriteIn_Locked(const char* buffer, uint32_t len); 27 uint32_t WriteIn_Locked(const char* buffer, uint32_t len);
29 28
(...skipping 22 matching lines...) Expand all
52 bool error_; 51 bool error_;
53 bool listening_; 52 bool listening_;
54 bool recv_endofstream_; 53 bool recv_endofstream_;
55 PP_Resource accepted_socket_; 54 PP_Resource accepted_socket_;
56 DISALLOW_COPY_AND_ASSIGN(TcpEventEmitter); 55 DISALLOW_COPY_AND_ASSIGN(TcpEventEmitter);
57 }; 56 };
58 57
59 } // namespace nacl_io 58 } // namespace nacl_io
60 59
61 #endif // LIBRARIES_NACL_IO_SOCKET_TCP_EVENT_EMITTER_H_ 60 #endif // LIBRARIES_NACL_IO_SOCKET_TCP_EVENT_EMITTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698