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

Unified Diff: runtime/bin/loader.h

Issue 2715463003: Add option to gen_snapshot for creating a Makefile describing a snapshot's dependencies. (Closed)
Patch Set: . Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/isolate_data.cc ('k') | runtime/bin/loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/loader.h
diff --git a/runtime/bin/loader.h b/runtime/bin/loader.h
index cc4912dda7011d81d163932caa9249d26fc7c6c8..bf1e328ae4ae230c7e0c29457ac9d1d27635b21c 100644
--- a/runtime/bin/loader.h
+++ b/runtime/bin/loader.h
@@ -29,6 +29,9 @@ class Loader {
uint8_t** payload,
intptr_t* payload_length);
+ static Dart_Handle ResolveAsFilePath(Dart_Handle url,
+ uint8_t** payload,
+ intptr_t* payload_length);
// A static tag handler that hides all usage of a loader for an isolate.
static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag,
@@ -89,9 +92,12 @@ class Loader {
void SendImportExtensionRequest(Dart_Handle url, Dart_Handle library_url);
// Send a request from the tag handler to the service isolate.
- void SendRequest(Dart_LibraryTag tag,
- Dart_Handle url,
- Dart_Handle library_url);
+ void SendRequest(intptr_t tag, Dart_Handle url, Dart_Handle library_url);
+
+ static Dart_Handle SendAndProcessReply(intptr_t tag,
+ Dart_Handle url,
+ uint8_t** payload,
+ intptr_t* payload_length);
// Send a request from the tag handler to the kernel isolate.
void SendKernelRequest(Dart_LibraryTag tag, Dart_Handle url);
@@ -106,7 +112,7 @@ class Loader {
static bool ProcessResultLocked(Loader* loader, IOResult* result);
/// Returns false if |result| is an error and the loader should quit.
- static bool ProcessUrlLoadResultLocked(Loader* loader, IOResult* result);
+ static bool ProcessPayloadResultLocked(Loader* loader, IOResult* result);
/// Returns false if an error occurred and the loader should quit.
bool ProcessQueueLocked(ProcessResult process_result);
« no previous file with comments | « runtime/bin/isolate_data.cc ('k') | runtime/bin/loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698