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

Unified Diff: Source/bindings/core/dart/DartService.cpp

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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 | « Source/bindings/core/dart/DartService.h ('k') | Source/bindings/core/dart/DartStringCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/dart/DartService.cpp
diff --git a/Source/bindings/core/dart/DartService.cpp b/Source/bindings/core/dart/DartService.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..f95bb095722bdeff90138d9067ede2dd702ae7e5
--- /dev/null
+++ b/Source/bindings/core/dart/DartService.cpp
@@ -0,0 +1,38 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// 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.
+
+#include "config.h"
+
+#include "bindings/core/dart/DartService.h"
+#include "bindings/core/dart/DartUtilities.h"
+
+#include "bin/vmservice_dartium.h"
+
+namespace blink {
+
+void DartService::Bootstrap()
+{
+ dart::bin::VmServiceServer::Bootstrap();
+}
+
+
+Dart_Isolate DartService::CreateIsolate()
+{
+ const uint8_t* snapshotBuffer = DartUtilities::isolateSnapshot();
+ return dart::bin::VmServiceServer::CreateIsolate(snapshotBuffer);
+}
+
+
+const char* DartService::GetServerIP()
+{
+ return dart::bin::VmServiceServer::GetServerIP();
+}
+
+
+intptr_t DartService::GetServerPort()
+{
+ return dart::bin::VmServiceServer::GetServerPort();
+}
+
+}
« no previous file with comments | « Source/bindings/core/dart/DartService.h ('k') | Source/bindings/core/dart/DartStringCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698