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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 void reportExecutionContextDestroyed(v8::Local<v8::Context>); | 122 void reportExecutionContextDestroyed(v8::Local<v8::Context>); |
123 | 123 |
124 void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) override; | 124 void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) override; |
125 void setInspectObjectCallback(PassOwnPtr<InspectCallback>) override; | 125 void setInspectObjectCallback(PassOwnPtr<InspectCallback>) override; |
126 int ensureDefaultContextAvailable(v8::Local<v8::Context>) override; | 126 int ensureDefaultContextAvailable(v8::Local<v8::Context>) override; |
127 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8::Context
>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false
) override; | 127 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8::Context
>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false
) override; |
128 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Context>
, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) override; | 128 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Context>
, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) override; |
129 void disposeObjectGroup(const String16&) override; | 129 void disposeObjectGroup(const String16&) override; |
130 v8::Local<v8::Value> findObject(ErrorString*, const String16& objectId, v8::
Local<v8::Context>* = nullptr, String16* groupName = nullptr) override; | 130 v8::Local<v8::Value> findObject(ErrorString*, const String16& objectId, v8::
Local<v8::Context>* = nullptr, String16* groupName = nullptr) override; |
131 void addInspectedObject(PassOwnPtr<Inspectable>) override; | 131 void addInspectedObject(PassOwnPtr<Inspectable>) override; |
| 132 |
| 133 static bool hasInternalError(ErrorString*, bool isError); |
132 private: | 134 private: |
133 v8::MaybeLocal<v8::Value> evaluateInternal(InjectedScript*, bool doNotPauseO
nExceptionsAndMuteConsole, const String& expression, v8::MaybeLocal<v8::Object>
extension); | 135 v8::MaybeLocal<v8::Value> evaluateInternal(InjectedScript*, bool doNotPauseO
nExceptionsAndMuteConsole, const String& expression, v8::MaybeLocal<v8::Object>
extension); |
134 | 136 |
135 int m_contextGroupId; | 137 int m_contextGroupId; |
136 protocol::DictionaryValue* m_state; | 138 protocol::DictionaryValue* m_state; |
137 protocol::Frontend::Runtime* m_frontend; | 139 protocol::Frontend::Runtime* m_frontend; |
138 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 140 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
139 V8DebuggerImpl* m_debugger; | 141 V8DebuggerImpl* m_debugger; |
140 bool m_enabled; | 142 bool m_enabled; |
141 protocol::HashMap<String16, OwnPtr<v8::Global<v8::Script>>> m_compiledScript
s; | 143 protocol::HashMap<String16, OwnPtr<v8::Global<v8::Script>>> m_compiledScript
s; |
142 }; | 144 }; |
143 | 145 |
144 } // namespace blink | 146 } // namespace blink |
145 | 147 |
146 #endif // V8RuntimeAgentImpl_h | 148 #endif // V8RuntimeAgentImpl_h |
OLD | NEW |