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/V8Debugger.h" | 10 #include "platform/v8_inspector/public/V8Debugger.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 class Client { | 28 class Client { |
29 public: | 29 public: |
30 virtual void reportExecutionContexts() = 0; | 30 virtual void reportExecutionContexts() = 0; |
31 }; | 31 }; |
32 | 32 |
33 static PassOwnPtr<V8RuntimeAgent> create(V8Debugger*, Client*); | 33 static PassOwnPtr<V8RuntimeAgent> create(V8Debugger*, Client*); |
34 virtual ~V8RuntimeAgent() { } | 34 virtual ~V8RuntimeAgent() { } |
35 | 35 |
36 // Embedder notification API. | 36 // Embedder notification API. |
37 virtual void reportExecutionContextCreated(v8::Local<v8::Context>, const Str
ing& type, const String& origin, const String& humanReadableName, const String&
frameId) = 0; | 37 virtual void reportExecutionContextCreated(v8::Local<v8::Context>, const Str
ing16& type, const String16& origin, const String16& humanReadableName, const St
ring16& frameId) = 0; |
38 virtual void reportExecutionContextDestroyed(v8::Local<v8::Context>) = 0; | 38 virtual void reportExecutionContextDestroyed(v8::Local<v8::Context>) = 0; |
39 | 39 |
40 // Embedder API. | 40 // Embedder API. |
41 using ClearConsoleCallback = Function<void()>; | 41 using ClearConsoleCallback = Function<void()>; |
42 virtual void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) = 0; | 42 virtual void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) = 0; |
43 using InspectCallback = Function<void(PassOwnPtr<protocol::Runtime::RemoteOb
ject>, PassOwnPtr<protocol::DictionaryValue>)>; | 43 using InspectCallback = Function<void(PassOwnPtr<protocol::Runtime::RemoteOb
ject>, PassOwnPtr<protocol::DictionaryValue>)>; |
44 virtual void setInspectObjectCallback(PassOwnPtr<InspectCallback>) = 0; | 44 virtual void setInspectObjectCallback(PassOwnPtr<InspectCallback>) = 0; |
45 // FIXME: remove while preserving the default context evaluation. | 45 // FIXME: remove while preserving the default context evaluation. |
46 virtual int ensureDefaultContextAvailable(v8::Local<v8::Context>) = 0; | 46 virtual int ensureDefaultContextAvailable(v8::Local<v8::Context>) = 0; |
47 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8:
:Context>, v8::Local<v8::Value>, const String& groupName, bool generatePreview =
false) = 0; | 47 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8:
:Context>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview
= false) = 0; |
48 // FIXME: remove when console.table moves into V8 inspector. | 48 // FIXME: remove when console.table moves into V8 inspector. |
49 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::
Context>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) = 0; | 49 virtual PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::
Context>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) = 0; |
50 virtual v8::Local<v8::Value> findObject(const String& objectId, v8::Local<v8
::Context>* = nullptr, String* objectGroup = nullptr) = 0; | 50 virtual v8::Local<v8::Value> findObject(const String16& objectId, v8::Local<
v8::Context>* = nullptr, String16* objectGroup = nullptr) = 0; |
51 virtual void disposeObjectGroup(const String&) = 0; | 51 virtual void disposeObjectGroup(const String16&) = 0; |
52 virtual void addInspectedObject(PassOwnPtr<Inspectable>) = 0; | 52 virtual void addInspectedObject(PassOwnPtr<Inspectable>) = 0; |
53 virtual void clearInspectedObjects() = 0; | 53 virtual void clearInspectedObjects() = 0; |
54 }; | 54 }; |
55 | 55 |
56 } // namespace blink | 56 } // namespace blink |
57 | 57 |
58 #endif // V8RuntimeAgent_h | 58 #endif // V8RuntimeAgent_h |
OLD | NEW |