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

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

Issue 59773007: - Add a per-isolate pseudo random number generator to the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « no previous file | runtime/bin/dartutils.cc » ('j') | runtime/bin/dartutils.cc » ('J')
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 "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "include/dart_native_api.h" 9 #include "include/dart_native_api.h"
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 static bool IsDartIOLibURL(const char* url_name); 108 static bool IsDartIOLibURL(const char* url_name);
109 static bool IsDartBuiltinLibURL(const char* url_name); 109 static bool IsDartBuiltinLibURL(const char* url_name);
110 static bool IsHttpSchemeURL(const char* url_name); 110 static bool IsHttpSchemeURL(const char* url_name);
111 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, 111 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping,
112 Dart_Handle library, 112 Dart_Handle library,
113 const char* url_str); 113 const char* url_str);
114 static void* OpenFile(const char* name, bool write); 114 static void* OpenFile(const char* name, bool write);
115 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream); 115 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream);
116 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream); 116 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream);
117 static void CloseFile(void* stream); 117 static void CloseFile(void* stream);
118 static bool EntropySource(uint8_t* buffer, size_t length);
119
118 static Dart_Handle ReadStringFromFile(const char* filename); 120 static Dart_Handle ReadStringFromFile(const char* filename);
119 static Dart_Handle ReadStringFromHttp(const char* filename); 121 static Dart_Handle ReadStringFromHttp(const char* filename);
120 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, 122 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag,
121 Dart_Handle library, 123 Dart_Handle library,
122 Dart_Handle url); 124 Dart_Handle url);
123 static Dart_Handle LoadScript(const char* script_uri, 125 static Dart_Handle LoadScript(const char* script_uri,
124 Dart_Handle builtin_lib); 126 Dart_Handle builtin_lib);
125 static Dart_Handle LoadScriptHttp(Dart_Handle script_uri, 127 static Dart_Handle LoadScriptHttp(Dart_Handle script_uri,
126 Dart_Handle builtin_lib); 128 Dart_Handle builtin_lib);
127 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, 129 static Dart_Handle LoadSource(CommandLineOptions* url_mapping,
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 } 533 }
532 534
533 private: 535 private:
534 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); 536 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array);
535 }; 537 };
536 538
537 } // namespace bin 539 } // namespace bin
538 } // namespace dart 540 } // namespace dart
539 541
540 #endif // BIN_DARTUTILS_H_ 542 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/dartutils.cc » ('j') | runtime/bin/dartutils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698