OLD | NEW |
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 CONTENT_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_ |
6 #define CONTENT_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_ | 6 #define CONTENT_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
| 12 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
11 #include "content/common/p2p_socket_type.h" | 14 #include "content/common/p2p_socket_type.h" |
12 #include "content/renderer/p2p/socket_client.h" | 15 #include "content/renderer/p2p/socket_client.h" |
13 #include "net/base/ip_endpoint.h" | 16 #include "net/base/ip_endpoint.h" |
14 | 17 |
15 namespace base { | 18 namespace base { |
16 class SingleThreadTaskRunner; | 19 class SingleThreadTaskRunner; |
17 class TimeTicks; | 20 class TimeTicks; |
18 } // namespace base | 21 } // namespace base |
19 | 22 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void Detach(); | 113 void Detach(); |
111 | 114 |
112 P2PSocketDispatcher* dispatcher_; | 115 P2PSocketDispatcher* dispatcher_; |
113 scoped_refptr<base::SingleThreadTaskRunner> ipc_task_runner_; | 116 scoped_refptr<base::SingleThreadTaskRunner> ipc_task_runner_; |
114 scoped_refptr<base::SingleThreadTaskRunner> delegate_task_runner_; | 117 scoped_refptr<base::SingleThreadTaskRunner> delegate_task_runner_; |
115 int socket_id_; | 118 int socket_id_; |
116 P2PSocketClientDelegate* delegate_; | 119 P2PSocketClientDelegate* delegate_; |
117 State state_; | 120 State state_; |
118 | 121 |
119 // These two fields are used to identify packets for tracing. | 122 // These two fields are used to identify packets for tracing. |
120 uint32 random_socket_id_; | 123 uint32_t random_socket_id_; |
121 uint32 next_packet_id_; | 124 uint32_t next_packet_id_; |
122 | 125 |
123 DISALLOW_COPY_AND_ASSIGN(P2PSocketClientImpl); | 126 DISALLOW_COPY_AND_ASSIGN(P2PSocketClientImpl); |
124 }; | 127 }; |
125 | 128 |
126 } // namespace content | 129 } // namespace content |
127 | 130 |
128 #endif // CONTENT_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_ | 131 #endif // CONTENT_RENDERER_P2P_SOCKET_CLIENT_IMPL_H_ |
OLD | NEW |