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

Unified Diff: sky/engine/bindings-dart/core/dart/DartService.h

Issue 918273002: Remove bindings-dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
Index: sky/engine/bindings-dart/core/dart/DartService.h
diff --git a/sky/engine/bindings-dart/core/dart/DartService.h b/sky/engine/bindings-dart/core/dart/DartService.h
deleted file mode 100644
index 5de9f704eb1c56c6047aa6923ed69d5990aad3db..0000000000000000000000000000000000000000
--- a/sky/engine/bindings-dart/core/dart/DartService.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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.
-
-#ifndef DartService_h
-#define DartService_h
-
-#include "wtf/text/WTFString.h"
-
-#include <dart_api.h>
-#include <dart_native_api.h>
-
-namespace blink {
-
-class Document;
-
-class DartServiceRequest {
-public:
- DartServiceRequest(const String& request);
- virtual ~DartServiceRequest();
-
- // Override this method and it will be called when
- // the response has been received from the VM service.
- virtual void ResponseReady(const char* response) = 0;
-
- const String& GetRequestString() { return m_request; };
-private:
- String m_request;
-};
-
-class DartService {
-public:
- // Returns false if service could not be started.
- static bool Start(Document*);
- // Error message if startup failed.
- static const char* GetErrorMessage();
- static void MakeServiceRequest(DartServiceRequest*);
- static bool IsRunning() { return m_isolate; }
-
-private:
- static Dart_Handle LoadScript();
- static Dart_NativeFunction NativeResolver(Dart_Handle name, int numArguments, bool* autoScopeSetup);
- static Dart_Isolate m_isolate;
- static const char* m_errorMsg;
- friend class DartServiceInternal;
-};
-
-}
-
-#endif // DartService_h
« no previous file with comments | « sky/engine/bindings-dart/core/dart/DartScriptWrappable.h ('k') | sky/engine/bindings-dart/core/dart/DartService.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698