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

Unified Diff: runtime/lib/uri.cc

Issue 21039005: Add support for file URIs and extracting the file path from file URIs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Style fix Created 7 years, 5 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
Index: runtime/lib/uri.cc
diff --git a/runtime/bin/vmservice.h b/runtime/lib/uri.cc
similarity index 53%
copy from runtime/bin/vmservice.h
copy to runtime/lib/uri.cc
index 4dcf93f704aaf7e82fc4d54ab5dbd81d2c7ee64e..e5b37606c4b02bc3d0f06a41b19e0c3787e9e11a 100644
--- a/runtime/bin/vmservice.h
+++ b/runtime/lib/uri.cc
@@ -2,16 +2,18 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#ifndef BIN_VMSERVICE_H_
-#define BIN_VMSERVICE_H_
-
-#include "include/dart_api.h"
+#include "vm/bootstrap_natives.h"
+#include "vm/native_entry.h"
+#include "vm/object.h"
namespace dart {
-namespace bin {
+DEFINE_NATIVE_ENTRY(Uri_isWindows, 0) {
+#if defined(_WIN32)
+ return Bool::True().raw();
+#else
+ return Bool::False().raw();
+#endif
+}
-} // namespace bin
} // namespace dart
-
-#endif // BIN_VMSERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698