OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef V8RuntimeAgentImpl_h | 31 #ifndef V8RuntimeAgentImpl_h |
32 #define V8RuntimeAgentImpl_h | 32 #define V8RuntimeAgentImpl_h |
33 | 33 |
34 #include "platform/inspector_protocol/Allocator.h" | 34 #include "platform/inspector_protocol/Allocator.h" |
35 #include "platform/inspector_protocol/Frontend.h" | 35 #include "platform/inspector_protocol/Frontend.h" |
36 #include "platform/v8_inspector/public/V8RuntimeAgent.h" | 36 #include "platform/v8_inspector/public/V8RuntimeAgent.h" |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
| 40 class InjectedScript; |
40 class InjectedScriptManager; | 41 class InjectedScriptManager; |
41 class V8DebuggerImpl; | 42 class V8DebuggerImpl; |
42 | 43 |
43 namespace protocol { | 44 namespace protocol { |
44 class DictionaryValue; | 45 class DictionaryValue; |
45 } | 46 } |
46 | 47 |
47 using protocol::Maybe; | 48 using protocol::Maybe; |
48 | 49 |
49 class V8RuntimeAgentImpl : public V8RuntimeAgent { | 50 class V8RuntimeAgentImpl : public V8RuntimeAgent { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 121 |
121 void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) override; | 122 void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) override; |
122 void setInspectObjectCallback(PassOwnPtr<InspectCallback>) override; | 123 void setInspectObjectCallback(PassOwnPtr<InspectCallback>) override; |
123 int ensureDefaultContextAvailable(v8::Local<v8::Context>) override; | 124 int ensureDefaultContextAvailable(v8::Local<v8::Context>) override; |
124 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8::Context
>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false
) override; | 125 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8::Context
>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false
) override; |
125 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Context>
, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) override; | 126 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Context>
, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) override; |
126 void disposeObjectGroup(const String16&) override; | 127 void disposeObjectGroup(const String16&) override; |
127 v8::Local<v8::Value> findObject(ErrorString*, const String16& objectId, v8::
Local<v8::Context>* = nullptr, String16* groupName = nullptr) override; | 128 v8::Local<v8::Value> findObject(ErrorString*, const String16& objectId, v8::
Local<v8::Context>* = nullptr, String16* groupName = nullptr) override; |
128 void addInspectedObject(PassOwnPtr<Inspectable>) override; | 129 void addInspectedObject(PassOwnPtr<Inspectable>) override; |
129 void clearInspectedObjects() override; | 130 void clearInspectedObjects() override; |
130 | |
131 private: | 131 private: |
132 PassOwnPtr<protocol::Runtime::ExceptionDetails> createExceptionDetails(v8::I
solate*, v8::Local<v8::Message>); | |
133 | |
134 int m_contextGroupId; | 132 int m_contextGroupId; |
135 protocol::DictionaryValue* m_state; | 133 protocol::DictionaryValue* m_state; |
136 protocol::Frontend::Runtime* m_frontend; | 134 protocol::Frontend::Runtime* m_frontend; |
137 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 135 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
138 V8DebuggerImpl* m_debugger; | 136 V8DebuggerImpl* m_debugger; |
139 bool m_enabled; | 137 bool m_enabled; |
140 protocol::HashMap<String16, OwnPtr<v8::Global<v8::Script>>> m_compiledScript
s; | 138 protocol::HashMap<String16, OwnPtr<v8::Global<v8::Script>>> m_compiledScript
s; |
141 }; | 139 }; |
142 | 140 |
143 } // namespace blink | 141 } // namespace blink |
144 | 142 |
145 #endif // V8RuntimeAgentImpl_h | 143 #endif // V8RuntimeAgentImpl_h |
OLD | NEW |