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

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

Issue 10832269: Revert "Start adding TLS (SSL) sockets to dart:io." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/dartutils.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_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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 const char* url_str); 91 const char* url_str);
92 static Dart_Handle ReadStringFromFile(const char* filename); 92 static Dart_Handle ReadStringFromFile(const char* filename);
93 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, 93 static Dart_Handle LoadSource(CommandLineOptions* url_mapping,
94 Dart_Handle library, 94 Dart_Handle library,
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 static Dart_Handle GetDartClass(const char* library_url,
102 const char* class_name);
103 // Create a new Dart OSError object with the current OS error. 101 // Create a new Dart OSError object with the current OS error.
104 static Dart_Handle NewDartOSError(); 102 static Dart_Handle NewDartOSError();
105 // Create a new Dart OSError object with the provided OS error. 103 // Create a new Dart OSError object with the provided OS error.
106 static Dart_Handle NewDartOSError(OSError* os_error); 104 static Dart_Handle NewDartOSError(OSError* os_error);
107 static Dart_Handle NewDartExceptionWithMessage(const char* library_url,
108 const char* exception_name,
109 const char* message);
110 static Dart_Handle NewDartIllegalArgumentException(const char* message);
111 105
112 static const char* kDartScheme; 106 static const char* kDartScheme;
113 static const char* kDartExtensionScheme; 107 static const char* kDartExtensionScheme;
114 static const char* kBuiltinLibURL; 108 static const char* kBuiltinLibURL;
115 static const char* kCoreLibURL; 109 static const char* kCoreLibURL;
116 static const char* kCoreImplLibURL; 110 static const char* kCoreImplLibURL;
117 static const char* kCryptoLibURL; 111 static const char* kCryptoLibURL;
118 static const char* kIOLibURL; 112 static const char* kIOLibURL;
119 static const char* kJsonLibURL; 113 static const char* kJsonLibURL;
120 static const char* kUriLibURL; 114 static const char* kUriLibURL;
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 void* Peer() const { return cobject_->value.as_external_byte_array.peer; } 349 void* Peer() const { return cobject_->value.as_external_byte_array.peer; }
356 Dart_PeerFinalizer Callback() const { 350 Dart_PeerFinalizer Callback() const {
357 return cobject_->value.as_external_byte_array.callback; 351 return cobject_->value.as_external_byte_array.callback;
358 } 352 }
359 353
360 private: 354 private:
361 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); 355 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array);
362 }; 356 };
363 357
364 #endif // BIN_DARTUTILS_H_ 358 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/dartutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698