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_SOCKET_SOCKET_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SOCKET_SOCKET_API_H_ |
6 #define EXTENSIONS_BROWSER_API_SOCKET_SOCKET_API_H_ | 6 #define EXTENSIONS_BROWSER_API_SOCKET_SOCKET_API_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 #endif // OS_CHROMEOS | 28 #endif // OS_CHROMEOS |
29 | 29 |
30 namespace content { | 30 namespace content { |
31 class BrowserContext; | 31 class BrowserContext; |
32 class ResourceContext; | 32 class ResourceContext; |
33 } | 33 } |
34 | 34 |
35 namespace net { | 35 namespace net { |
36 class IOBuffer; | 36 class IOBuffer; |
37 class URLRequestContextGetter; | 37 class URLRequestContextGetter; |
38 class SSLClientSocket; | |
39 } | 38 } |
40 | 39 |
41 namespace extensions { | 40 namespace extensions { |
42 class Socket; | 41 class Socket; |
43 class TLSSocket; | 42 class TLSSocket; |
44 | 43 |
45 // A simple interface to ApiResourceManager<Socket> or derived class. The goal | 44 // A simple interface to ApiResourceManager<Socket> or derived class. The goal |
46 // of this interface is to allow Socket API functions to use distinct instances | 45 // of this interface is to allow Socket API functions to use distinct instances |
47 // of ApiResourceManager<> depending on the type of socket (old version in | 46 // of ApiResourceManager<> depending on the type of socket (old version in |
48 // "socket" namespace vs new version in "socket.xxx" namespaces). | 47 // "socket" namespace vs new version in "socket.xxx" namespaces). |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 | 555 |
557 std::unique_ptr<api::socket::Secure::Params> params_; | 556 std::unique_ptr<api::socket::Secure::Params> params_; |
558 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; | 557 scoped_refptr<net::URLRequestContextGetter> url_request_getter_; |
559 | 558 |
560 DISALLOW_COPY_AND_ASSIGN(SocketSecureFunction); | 559 DISALLOW_COPY_AND_ASSIGN(SocketSecureFunction); |
561 }; | 560 }; |
562 | 561 |
563 } // namespace extensions | 562 } // namespace extensions |
564 | 563 |
565 #endif // EXTENSIONS_BROWSER_API_SOCKET_SOCKET_API_H_ | 564 #endif // EXTENSIONS_BROWSER_API_SOCKET_SOCKET_API_H_ |
OLD | NEW |