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

Side by Side Diff: runtime/bin/secure_socket_patch.dart

Issue 2928013002: Revert "Removed SecurityContext.alpnSupported, as ALPN is now supported on all platforms. Also upda… (Closed)
Patch Set: Removed extra @deprecated annotations and updated documentation. Created 3 years, 6 months 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 (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 @patch 5 @patch
6 class SecureSocket { 6 class SecureSocket {
7 @patch 7 @patch
8 factory SecureSocket._(RawSecureSocket rawSocket) => 8 factory SecureSocket._(RawSecureSocket rawSocket) =>
9 new _SecureSocket(rawSocket); 9 new _SecureSocket(rawSocket);
10 } 10 }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 class SecurityContext { 122 class SecurityContext {
123 @patch 123 @patch
124 factory SecurityContext() { 124 factory SecurityContext() {
125 return new _SecurityContext(); 125 return new _SecurityContext();
126 } 126 }
127 127
128 @patch 128 @patch
129 static SecurityContext get defaultContext { 129 static SecurityContext get defaultContext {
130 return _SecurityContext.defaultContext; 130 return _SecurityContext.defaultContext;
131 } 131 }
132
133 @patch
134 static bool get alpnSupported => true;
132 } 135 }
133 136
134 class _SecurityContext extends NativeFieldWrapperClass1 137 class _SecurityContext extends NativeFieldWrapperClass1
135 implements SecurityContext { 138 implements SecurityContext {
136 _SecurityContext() { 139 _SecurityContext() {
137 _createNativeContext(); 140 _createNativeContext();
138 } 141 }
139 142
140 void _createNativeContext() native "SecurityContext_Allocate"; 143 void _createNativeContext() native "SecurityContext_Allocate";
141 144
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 isUtc: true); 205 isUtc: true);
203 } 206 }
204 207
205 DateTime get endValidity { 208 DateTime get endValidity {
206 return new DateTime.fromMillisecondsSinceEpoch(_endValidity(), isUtc: true); 209 return new DateTime.fromMillisecondsSinceEpoch(_endValidity(), isUtc: true);
207 } 210 }
208 211
209 int _startValidity() native "X509_StartValidity"; 212 int _startValidity() native "X509_StartValidity";
210 int _endValidity() native "X509_EndValidity"; 213 int _endValidity() native "X509_EndValidity";
211 } 214 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart ('k') | sdk/lib/_internal/js_runtime/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698