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

Side by Side Diff: extensions/browser/api/socket/tls_socket.h

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 5 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 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 CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 11
10 #include "extensions/browser/api/socket/socket.h" 12 #include "extensions/browser/api/socket/socket.h"
11 #include "extensions/browser/api/socket/socket_api.h" 13 #include "extensions/browser/api/socket/socket_api.h"
12 #include "extensions/browser/api/socket/tcp_socket.h" 14 #include "extensions/browser/api/socket/tcp_socket.h"
13 #include "net/ssl/ssl_config_service.h" 15 #include "net/ssl/ssl_config_service.h"
14 16
15 namespace net { 17 namespace net {
16 class Socket; 18 class Socket;
17 class CertVerifier; 19 class CertVerifier;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Fails. This should have been called on the TCP socket before secure() was 60 // Fails. This should have been called on the TCP socket before secure() was
59 // invoked. 61 // invoked.
60 bool SetKeepAlive(bool enable, int delay) override; 62 bool SetKeepAlive(bool enable, int delay) override;
61 63
62 // Fails. This should have been called on the TCP socket before secure() was 64 // Fails. This should have been called on the TCP socket before secure() was
63 // invoked. 65 // invoked.
64 bool SetNoDelay(bool no_delay) override; 66 bool SetNoDelay(bool no_delay) override;
65 67
66 // Fails. TLSSocket is only a client. 68 // Fails. TLSSocket is only a client.
67 int Listen(const std::string& address, 69 int Listen(const std::string& address,
68 uint16 port, 70 uint16_t port,
69 int backlog, 71 int backlog,
70 std::string* error_msg) override; 72 std::string* error_msg) override;
71 73
72 // Fails. TLSSocket is only a client. 74 // Fails. TLSSocket is only a client.
73 void Accept(const AcceptCompletionCallback& callback) override; 75 void Accept(const AcceptCompletionCallback& callback) override;
74 76
75 // Forwards. 77 // Forwards.
76 bool IsConnected() override; 78 bool IsConnected() override;
77 79
78 // Forwards. 80 // Forwards.
(...skipping 30 matching lines...) Expand all
109 int result); 111 int result);
110 112
111 scoped_ptr<net::StreamSocket> tls_socket_; 113 scoped_ptr<net::StreamSocket> tls_socket_;
112 ReadCompletionCallback read_callback_; 114 ReadCompletionCallback read_callback_;
113 }; 115 };
114 116
115 } // namespace extensions 117 } // namespace extensions
116 118
117 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_ 119 #endif // CHROME_BROWSER_EXTENSIONS_API_SOCKET_TLS_SOCKET_H_
118 120
OLDNEW
« no previous file with comments | « extensions/browser/api/socket/tcp_socket.cc ('k') | extensions/browser/api/socket/tls_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698