OLD | NEW |
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 EXTENSIONS_BROWSER_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ |
6 #define EXTENSIONS_BROWSER_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ | 6 #define EXTENSIONS_BROWSER_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ |
7 | 7 |
8 #include "extensions/browser/api/socket/socket_api.h" | 8 #include "extensions/browser/api/socket/socket_api.h" |
9 #include "extensions/common/api/sockets_tcp.h" | 9 #include "extensions/common/api/sockets_tcp.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 class ResumableTCPSocket; | 12 class ResumableTCPSocket; |
13 class TLSSocket; | 13 class TLSSocket; |
14 } | 14 } |
15 | 15 |
16 namespace extensions { | 16 namespace extensions { |
17 namespace core_api { | 17 namespace api { |
18 | 18 |
19 class TCPSocketEventDispatcher; | 19 class TCPSocketEventDispatcher; |
20 | 20 |
21 class TCPSocketAsyncApiFunction : public SocketAsyncApiFunction { | 21 class TCPSocketAsyncApiFunction : public SocketAsyncApiFunction { |
22 protected: | 22 protected: |
23 ~TCPSocketAsyncApiFunction() override; | 23 ~TCPSocketAsyncApiFunction() override; |
24 | 24 |
25 scoped_ptr<SocketResourceManagerInterface> CreateSocketResourceManager() | 25 scoped_ptr<SocketResourceManagerInterface> CreateSocketResourceManager() |
26 override; | 26 override; |
27 | 27 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 int result); | 255 int result); |
256 | 256 |
257 bool paused_; | 257 bool paused_; |
258 bool persistent_; | 258 bool persistent_; |
259 scoped_ptr<sockets_tcp::Secure::Params> params_; | 259 scoped_ptr<sockets_tcp::Secure::Params> params_; |
260 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; | 260 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; |
261 | 261 |
262 DISALLOW_COPY_AND_ASSIGN(SocketsTcpSecureFunction); | 262 DISALLOW_COPY_AND_ASSIGN(SocketsTcpSecureFunction); |
263 }; | 263 }; |
264 | 264 |
265 } // namespace core_api | 265 } // namespace api |
266 } // namespace extensions | 266 } // namespace extensions |
267 | 267 |
268 #endif // EXTENSIONS_BROWSER_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ | 268 #endif // EXTENSIONS_BROWSER_API_SOCKETS_TCP_SOCKETS_TCP_API_H_ |
OLD | NEW |