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 V8RuntimeAgent_h | 5 #ifndef V8RuntimeAgent_h |
6 #define V8RuntimeAgent_h | 6 #define V8RuntimeAgent_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/inspector_protocol/Dispatcher.h" | 9 #include "platform/inspector_protocol/Dispatcher.h" |
10 #include "platform/v8_inspector/public/V8ContextInfo.h" | 10 #include "platform/v8_inspector/public/V8ContextInfo.h" |
11 #include "platform/v8_inspector/public/V8Debugger.h" | 11 #include "platform/v8_inspector/public/V8Debugger.h" |
12 #include "wtf/Functional.h" | 12 #include "wtf/Functional.h" |
13 | 13 |
14 #include <v8.h> | 14 #include <v8.h> |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 class InjectedScriptManager; | 18 class InjectedScriptManager; |
19 | 19 |
20 class PLATFORM_EXPORT V8RuntimeAgent : public protocol::Dispatcher::RuntimeComma
ndHandler, public V8Debugger::Agent<protocol::Frontend::Runtime> { | 20 class PLATFORM_EXPORT V8RuntimeAgent : public protocol::Backend::Runtime, public
V8Debugger::Agent<protocol::Frontend::Runtime> { |
21 public: | 21 public: |
22 // Cross-context inspectable values (DOM nodes in different worlds, etc.). | 22 // Cross-context inspectable values (DOM nodes in different worlds, etc.). |
23 class Inspectable { | 23 class Inspectable { |
24 public: | 24 public: |
25 virtual v8::Local<v8::Value> get(v8::Local<v8::Context>) = 0; | 25 virtual v8::Local<v8::Value> get(v8::Local<v8::Context>) = 0; |
26 virtual ~Inspectable() { } | 26 virtual ~Inspectable() { } |
27 }; | 27 }; |
28 | 28 |
29 static PassOwnPtr<V8RuntimeAgent> create(V8Debugger*, int contextGroupId); | 29 static PassOwnPtr<V8RuntimeAgent> create(V8Debugger*, int contextGroupId); |
30 virtual ~V8RuntimeAgent() { } | 30 virtual ~V8RuntimeAgent() { } |
(...skipping 10 matching lines...) Expand all Loading... |
41 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::
Context>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) = 0; | 41 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::
Context>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) = 0; |
42 virtual v8::Local<v8::Value> findObject(ErrorString*, const String16& object
Id, v8::Local<v8::Context>* = nullptr, String16* objectGroup = nullptr) = 0; | 42 virtual v8::Local<v8::Value> findObject(ErrorString*, const String16& object
Id, v8::Local<v8::Context>* = nullptr, String16* objectGroup = nullptr) = 0; |
43 virtual void disposeObjectGroup(const String16&) = 0; | 43 virtual void disposeObjectGroup(const String16&) = 0; |
44 virtual void addInspectedObject(PassOwnPtr<Inspectable>) = 0; | 44 virtual void addInspectedObject(PassOwnPtr<Inspectable>) = 0; |
45 virtual void clearInspectedObjects() = 0; | 45 virtual void clearInspectedObjects() = 0; |
46 }; | 46 }; |
47 | 47 |
48 } // namespace blink | 48 } // namespace blink |
49 | 49 |
50 #endif // V8RuntimeAgent_h | 50 #endif // V8RuntimeAgent_h |
OLD | NEW |