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

Side by Side Diff: dart/runtime/bin/secure_socket.h

Issue 625953002: Support for the ALPN extension of the TLS protocol for Client and Server (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « dart/runtime/bin/io_natives.cc ('k') | dart/runtime/bin/secure_socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_SECURE_SOCKET_H_ 5 #ifndef BIN_SECURE_SOCKET_H_
6 #define BIN_SECURE_SOCKET_H_ 6 #define BIN_SECURE_SOCKET_H_
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 filter_(NULL) { } 54 filter_(NULL) { }
55 55
56 void Init(Dart_Handle dart_this); 56 void Init(Dart_Handle dart_this);
57 void Connect(const char* host, 57 void Connect(const char* host,
58 RawAddr* raw_addr, 58 RawAddr* raw_addr,
59 int port, 59 int port,
60 bool is_server, 60 bool is_server,
61 const char* certificate_name, 61 const char* certificate_name,
62 bool request_client_certificate, 62 bool request_client_certificate,
63 bool require_client_certificate, 63 bool require_client_certificate,
64 bool send_client_certificate); 64 bool send_client_certificate,
65 Dart_Handle protocols_handle);
65 void Destroy(); 66 void Destroy();
66 void Handshake(); 67 void Handshake();
68 void GetSelectedProtocol(Dart_NativeArguments args);
67 void Renegotiate(bool use_session_cache, 69 void Renegotiate(bool use_session_cache,
68 bool request_client_certificate, 70 bool request_client_certificate,
69 bool require_client_certificate); 71 bool require_client_certificate);
70 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete); 72 void RegisterHandshakeCompleteCallback(Dart_Handle handshake_complete);
71 void RegisterBadCertificateCallback(Dart_Handle callback); 73 void RegisterBadCertificateCallback(Dart_Handle callback);
72 Dart_Handle bad_certificate_callback() { 74 Dart_Handle bad_certificate_callback() {
73 return Dart_HandleFromPersistent(bad_certificate_callback_); 75 return Dart_HandleFromPersistent(bad_certificate_callback_);
74 } 76 }
75 intptr_t ProcessReadPlaintextBuffer(int start, int end); 77 intptr_t ProcessReadPlaintextBuffer(int start, int end);
76 intptr_t ProcessWritePlaintextBuffer(int start1, int end1, 78 intptr_t ProcessWritePlaintextBuffer(int start1, int end1,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void InitializeBuffers(Dart_Handle dart_this); 116 void InitializeBuffers(Dart_Handle dart_this);
115 void InitializePlatformData(); 117 void InitializePlatformData();
116 118
117 DISALLOW_COPY_AND_ASSIGN(SSLFilter); 119 DISALLOW_COPY_AND_ASSIGN(SSLFilter);
118 }; 120 };
119 121
120 } // namespace bin 122 } // namespace bin
121 } // namespace dart 123 } // namespace dart
122 124
123 #endif // BIN_SECURE_SOCKET_H_ 125 #endif // BIN_SECURE_SOCKET_H_
OLDNEW
« no previous file with comments | « dart/runtime/bin/io_natives.cc ('k') | dart/runtime/bin/secure_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698