OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_DART_EMBEDDER_DART_DEBUGGER_H_ | 5 #ifndef SKY_ENGINE_CORE_SCRIPT_DART_DEBUGGER_H_ |
6 #define MOJO_DART_EMBEDDER_DART_DEBUGGER_H_ | 6 #define SKY_ENGINE_CORE_SCRIPT_DART_DEBUGGER_H_ |
7 | 7 |
8 #include "dart/runtime/include/dart_api.h" | 8 #include "dart/runtime/include/dart_api.h" |
9 #include "dart/runtime/include/dart_debugger_api.h" | 9 #include "dart/runtime/include/dart_debugger_api.h" |
10 #include "dart/runtime/include/dart_native_api.h" | 10 #include "dart/runtime/include/dart_native_api.h" |
11 #include "mojo/dart/embedder/monitor.h" | 11 #include "monitor.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 class Lock; | 14 class Lock; |
15 } | 15 } |
16 | 16 |
17 namespace mojo { | 17 namespace blink { |
18 namespace dart { | |
19 | 18 |
20 class DartDebuggerIsolate { | 19 class DartDebuggerIsolate { |
21 public: | 20 public: |
22 DartDebuggerIsolate(Dart_IsolateId id) | 21 DartDebuggerIsolate(Dart_IsolateId id) |
23 : id_(id) { | 22 : id_(id) { |
24 } | 23 } |
25 | 24 |
26 Dart_IsolateId id() const { | 25 Dart_IsolateId id() const { |
27 return id_; | 26 return id_; |
28 } | 27 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 static DartDebuggerIsolate* AddIsolate(Dart_IsolateId id); | 66 static DartDebuggerIsolate* AddIsolate(Dart_IsolateId id); |
68 | 67 |
69 static void RemoveIsolate(Dart_IsolateId id); | 68 static void RemoveIsolate(Dart_IsolateId id); |
70 | 69 |
71 static base::Lock* lock_; | 70 static base::Lock* lock_; |
72 static std::vector<DartDebuggerIsolate*> isolates_; | 71 static std::vector<DartDebuggerIsolate*> isolates_; |
73 | 72 |
74 friend class DartDebuggerIsolate; | 73 friend class DartDebuggerIsolate; |
75 }; | 74 }; |
76 | 75 |
77 } // namespace dart | 76 } // namespace blink |
78 } // namespace mojo | |
79 | 77 |
80 #endif // MOJO_DART_EMBEDDER_DART_DEBUGGER_H_ | 78 #endif // SKY_ENGINE_CORE_SCRIPT_DART_DEBUGGER_H_ |
OLD | NEW |