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

Unified Diff: runtime/bin/isolate_data.h

Issue 545483002: Per isolate package root. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed test. Created 6 years, 3 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 | « no previous file | runtime/bin/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/isolate_data.h
diff --git a/runtime/bin/isolate_data.h b/runtime/bin/isolate_data.h
index 3dc0ba2f8d34ea1a9fbe74988cad0cafa2d16e82..eaaa3fbe4c25a8a02f95861c839489ef5036693f 100644
--- a/runtime/bin/isolate_data.h
+++ b/runtime/bin/isolate_data.h
@@ -20,15 +20,22 @@ class EventHandler;
// when the isolate shuts down.
class IsolateData {
public:
- explicit IsolateData(const char* url)
- : script_url(strdup(url)), udp_receive_buffer(NULL) {
+ explicit IsolateData(const char* url, const char* package_root)
+ : script_url(strdup(url)),
+ package_root(NULL),
+ udp_receive_buffer(NULL) {
+ if (package_root != NULL) {
+ this->package_root = strdup(package_root);
+ }
}
~IsolateData() {
free(script_url);
+ free(package_root);
free(udp_receive_buffer);
}
char* script_url;
+ char* package_root;
uint8_t* udp_receive_buffer;
private:
« no previous file with comments | « no previous file | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698