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

Unified Diff: bin/dartutils.cc

Issue 9417012: - Add dart:json, dart:uri and dart:utf8 to the known and builtin libraries. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « bin/dartutils.h ('k') | bin/gen_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/dartutils.cc
===================================================================
--- bin/dartutils.cc (revision 4317)
+++ bin/dartutils.cc (working copy)
@@ -14,6 +14,9 @@
const char* DartUtils::kCoreLibURL = "dart:core";
const char* DartUtils::kCoreImplLibURL = "dart:coreimpl";
const char* DartUtils::kIOLibURL = "dart:io";
+const char* DartUtils::kJsonLibURL = "dart:json";
+const char* DartUtils::kUriLibURL = "dart:uri";
+const char* DartUtils::kUtf8LibURL = "dart:utf8";
const char* DartUtils::kIdFieldName = "_id";
@@ -106,7 +109,21 @@
}
+bool DartUtils::IsDartJsonLibURL(const char* url_name) {
+ return (strcmp(url_name, kJsonLibURL) == 0);
+}
+
+bool DartUtils::IsDartUriLibURL(const char* url_name) {
+ return (strcmp(url_name, kUriLibURL) == 0);
+}
+
+
+bool DartUtils::IsDartUtf8LibURL(const char* url_name) {
+ return (strcmp(url_name, kUtf8LibURL) == 0);
+}
+
+
Dart_Handle DartUtils::CanonicalizeURL(CommandLineOptions* url_mapping,
Dart_Handle library,
const char* url_str) {
« no previous file with comments | « bin/dartutils.h ('k') | bin/gen_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698