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

Unified Diff: mojo/dart/embedder/dart_debugger.h

Issue 1245243002: Move dart_debugger into tonic and use it in mojo dart controller (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « mojo/dart/embedder/dart_controller.cc ('k') | mojo/dart/embedder/dart_debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/dart_debugger.h
diff --git a/mojo/dart/embedder/dart_debugger.h b/mojo/dart/embedder/dart_debugger.h
deleted file mode 100644
index 541e6638272563005df77fe2b9213b3256036bbf..0000000000000000000000000000000000000000
--- a/mojo/dart/embedder/dart_debugger.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_DART_EMBEDDER_DART_DEBUGGER_H_
-#define MOJO_DART_EMBEDDER_DART_DEBUGGER_H_
-
-#include <memory>
-#include <vector>
-
-#include "dart/runtime/include/dart_api.h"
-#include "dart/runtime/include/dart_native_api.h"
-#include "dart/runtime/include/dart_tools_api.h"
-#include "mojo/dart/embedder/monitor.h"
-
-namespace base {
- class Lock;
-}
-
-namespace mojo {
-namespace dart {
-
-class DartDebuggerIsolate {
- public:
- DartDebuggerIsolate(Dart_IsolateId id)
- : id_(id) {
- }
-
- Dart_IsolateId id() const {
- return id_;
- }
-
- void Notify() {
- monitor_.Notify();
- }
-
- void MessageLoop();
-
- private:
- const Dart_IsolateId id_;
- Monitor monitor_;
-};
-
-class DartDebugger {
- public:
- static void InitDebugger();
-
- private:
- static void BptResolvedHandler(Dart_IsolateId isolate_id,
- intptr_t bp_id,
- const Dart_CodeLocation& location);
-
- static void PausedEventHandler(Dart_IsolateId isolate_id,
- intptr_t bp_id,
- const Dart_CodeLocation& loc);
-
- static void ExceptionThrownHandler(Dart_IsolateId isolate_id,
- Dart_Handle exception,
- Dart_StackTrace stack_trace);
-
- static void IsolateEventHandler(Dart_IsolateId isolate_id,
- Dart_IsolateEvent kind);
-
- static void NotifyIsolate(Dart_Isolate isolate);
-
- static intptr_t FindIsolateIndexById(Dart_IsolateId id);
-
- static intptr_t FindIsolateIndexByIdLocked(Dart_IsolateId id);
-
- static void AddIsolate(Dart_IsolateId id);
-
- static void RemoveIsolate(Dart_IsolateId id);
-
- static base::Lock* lock_;
- static std::vector<std::unique_ptr<DartDebuggerIsolate>>* isolates_;
-
- friend class DartDebuggerIsolate;
-};
-
-} // namespace dart
-} // namespace mojo
-
-#endif // MOJO_DART_EMBEDDER_DART_DEBUGGER_H_
« no previous file with comments | « mojo/dart/embedder/dart_controller.cc ('k') | mojo/dart/embedder/dart_debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698