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

Side by Side Diff: runtime/bin/dartutils.h

Issue 10704159: Start adding TLS (SSL) sockets to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add proper event handling during handshake phase of connection. Created 8 years, 4 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 | Annotate | Revision Log
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_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/utils.h" 9 #include "bin/utils.h"
10 #include "include/dart_api.h" 10 #include "include/dart_api.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 Dart_Handle url, 95 Dart_Handle url,
96 Dart_LibraryTag tag, 96 Dart_LibraryTag tag,
97 const char* filename); 97 const char* filename);
98 static bool PostNull(Dart_Port port_id); 98 static bool PostNull(Dart_Port port_id);
99 static bool PostInt32(Dart_Port port_id, int32_t value); 99 static bool PostInt32(Dart_Port port_id, int32_t value);
100 100
101 // Create a new Dart OSError object with the current OS error. 101 // Create a new Dart OSError object with the current OS error.
102 static Dart_Handle NewDartOSError(); 102 static Dart_Handle NewDartOSError();
103 // Create a new Dart OSError object with the provided OS error. 103 // Create a new Dart OSError object with the provided OS error.
104 static Dart_Handle NewDartOSError(OSError* os_error); 104 static Dart_Handle NewDartOSError(OSError* os_error);
105 static Dart_Handle NewDartIllegalArgumentError(const char* message);
Anders Johnsen 2012/07/27 15:58:49 Add comment.
105 106
106 static const char* kDartScheme; 107 static const char* kDartScheme;
107 static const char* kDartExtensionScheme; 108 static const char* kDartExtensionScheme;
108 static const char* kBuiltinLibURL; 109 static const char* kBuiltinLibURL;
109 static const char* kCoreLibURL; 110 static const char* kCoreLibURL;
110 static const char* kCoreImplLibURL; 111 static const char* kCoreImplLibURL;
111 static const char* kCryptoLibURL; 112 static const char* kCryptoLibURL;
112 static const char* kIOLibURL; 113 static const char* kIOLibURL;
113 static const char* kJsonLibURL; 114 static const char* kJsonLibURL;
114 static const char* kUriLibURL; 115 static const char* kUriLibURL;
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 void* Peer() const { return cobject_->value.as_external_byte_array.peer; } 350 void* Peer() const { return cobject_->value.as_external_byte_array.peer; }
350 Dart_PeerFinalizer Callback() const { 351 Dart_PeerFinalizer Callback() const {
351 return cobject_->value.as_external_byte_array.callback; 352 return cobject_->value.as_external_byte_array.callback;
352 } 353 }
353 354
354 private: 355 private:
355 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); 356 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array);
356 }; 357 };
357 358
358 #endif // BIN_DARTUTILS_H_ 359 #endif // BIN_DARTUTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698