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

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

Issue 270503007: Eliminate unused url mapping parameter in dartutils (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | « no previous file | runtime/bin/dartutils.cc » ('j') | runtime/vm/unit_test.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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 const char* name, 106 const char* name,
107 int64_t val); 107 int64_t val);
108 static void SetStringField(Dart_Handle handle, 108 static void SetStringField(Dart_Handle handle,
109 const char* name, 109 const char* name,
110 const char* val); 110 const char* val);
111 static bool IsDartSchemeURL(const char* url_name); 111 static bool IsDartSchemeURL(const char* url_name);
112 static bool IsDartExtensionSchemeURL(const char* url_name); 112 static bool IsDartExtensionSchemeURL(const char* url_name);
113 static bool IsDartIOLibURL(const char* url_name); 113 static bool IsDartIOLibURL(const char* url_name);
114 static bool IsDartBuiltinLibURL(const char* url_name); 114 static bool IsDartBuiltinLibURL(const char* url_name);
115 static bool IsHttpSchemeURL(const char* url_name); 115 static bool IsHttpSchemeURL(const char* url_name);
116 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, 116 static Dart_Handle CanonicalizeURL(Dart_Handle library, const char* url_str);
117 Dart_Handle library,
118 const char* url_str);
119 static void* OpenFile(const char* name, bool write); 117 static void* OpenFile(const char* name, bool write);
120 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream); 118 static void ReadFile(const uint8_t** data, intptr_t* file_len, void* stream);
121 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream); 119 static void WriteFile(const void* buffer, intptr_t num_bytes, void* stream);
122 static void CloseFile(void* stream); 120 static void CloseFile(void* stream);
123 static bool EntropySource(uint8_t* buffer, intptr_t length); 121 static bool EntropySource(uint8_t* buffer, intptr_t length);
124 122
125 static Dart_Handle ReadStringFromFile(const char* filename); 123 static Dart_Handle ReadStringFromFile(const char* filename);
126 static Dart_Handle ReadStringFromHttp(const char* filename); 124 static Dart_Handle ReadStringFromHttp(const char* filename);
127 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, 125 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag,
128 Dart_Handle library, 126 Dart_Handle library,
129 Dart_Handle url); 127 Dart_Handle url);
130 static Dart_Handle LoadScript(const char* script_uri, 128 static Dart_Handle LoadScript(const char* script_uri,
131 Dart_Handle builtin_lib); 129 Dart_Handle builtin_lib);
132 static Dart_Handle LoadScriptHttp(Dart_Handle script_uri, 130 static Dart_Handle LoadScriptHttp(Dart_Handle script_uri,
133 Dart_Handle builtin_lib); 131 Dart_Handle builtin_lib);
134 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, 132 static Dart_Handle LoadSource(Dart_Handle library,
135 Dart_Handle library,
136 Dart_Handle url, 133 Dart_Handle url,
137 Dart_LibraryTag tag, 134 Dart_LibraryTag tag,
138 const char* filename); 135 const char* filename);
139 static Dart_Handle PrepareForScriptLoading(const char* package_root, 136 static Dart_Handle PrepareForScriptLoading(const char* package_root,
140 Dart_Handle builtin_lib); 137 Dart_Handle builtin_lib);
141 138
142 static bool PostNull(Dart_Port port_id); 139 static bool PostNull(Dart_Port port_id);
143 static bool PostInt32(Dart_Port port_id, int32_t value); 140 static bool PostInt32(Dart_Port port_id, int32_t value);
144 static bool PostInt64(Dart_Port port_id, int64_t value); 141 static bool PostInt64(Dart_Port port_id, int64_t value);
145 142
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 } 540 }
544 541
545 private: 542 private:
546 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); 543 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array);
547 }; 544 };
548 545
549 } // namespace bin 546 } // namespace bin
550 } // namespace dart 547 } // namespace dart
551 548
552 #endif // BIN_DARTUTILS_H_ 549 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/dartutils.cc » ('j') | runtime/vm/unit_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698