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

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

Issue 290713004: First step towards asynchronous loading of sources (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
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 static Dart_Handle FilePathFromUri(Dart_Handle script_uri, 181 static Dart_Handle FilePathFromUri(Dart_Handle script_uri,
182 Dart_Handle builtin_lib); 182 Dart_Handle builtin_lib);
183 183
184 static Dart_Handle ExtensionPathFromUri(Dart_Handle extension_uri, 184 static Dart_Handle ExtensionPathFromUri(Dart_Handle extension_uri,
185 Dart_Handle builtin_lib); 185 Dart_Handle builtin_lib);
186 186
187 static Dart_Handle ResolveUri(Dart_Handle library_url, 187 static Dart_Handle ResolveUri(Dart_Handle library_url,
188 Dart_Handle url, 188 Dart_Handle url,
189 Dart_Handle builtin_lib); 189 Dart_Handle builtin_lib);
190 190
191 static Dart_Handle LoadScriptDataAsync(Dart_Handle script_uri,
192 Dart_Handle builtin_lib);
193
191 // Sniffs the specified text_buffer to see if it contains the magic number 194 // Sniffs the specified text_buffer to see if it contains the magic number
192 // representing a script snapshot. If the text_buffer is a script snapshot 195 // representing a script snapshot. If the text_buffer is a script snapshot
193 // the return value is an updated pointer to the text_buffer pointing past 196 // the return value is an updated pointer to the text_buffer pointing past
194 // the magic number value. The 'buffer_len' parameter is also appropriately 197 // the magic number value. The 'buffer_len' parameter is also appropriately
195 // adjusted. 198 // adjusted.
196 static const uint8_t* SniffForMagicNumber(const uint8_t* text_buffer, 199 static const uint8_t* SniffForMagicNumber(const uint8_t* text_buffer,
197 intptr_t* buffer_len, 200 intptr_t* buffer_len,
198 bool* is_snapshot); 201 bool* is_snapshot);
199 202
200 // Write a magic number to indicate a script snapshot file. 203 // Write a magic number to indicate a script snapshot file.
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 } 539 }
537 540
538 private: 541 private:
539 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); 542 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array);
540 }; 543 };
541 544
542 } // namespace bin 545 } // namespace bin
543 } // namespace dart 546 } // namespace dart
544 547
545 #endif // BIN_DARTUTILS_H_ 548 #endif // BIN_DARTUTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698