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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 void runScript(ErrorString*, | 103 void runScript(ErrorString*, |
104 const String16&, | 104 const String16&, |
105 int executionContextId, | 105 int executionContextId, |
106 const Maybe<String16>& objectGroup, | 106 const Maybe<String16>& objectGroup, |
107 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, | 107 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, |
108 const Maybe<bool>& includeCommandLineAPI, | 108 const Maybe<bool>& includeCommandLineAPI, |
109 OwnPtr<protocol::Runtime::RemoteObject>* result, | 109 OwnPtr<protocol::Runtime::RemoteObject>* result, |
110 Maybe<protocol::Runtime::ExceptionDetails>*) override; | 110 Maybe<protocol::Runtime::ExceptionDetails>*) override; |
111 | 111 |
112 V8DebuggerImpl* debugger() { return m_debugger; } | 112 V8DebuggerImpl* debugger() { return m_debugger; } |
113 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger.get(); } | 113 InjectedScriptManager* getInjectedScriptManager() { return m_injectedScriptM
anager.get(); } |
114 | 114 |
115 void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) override; | 115 void setClearConsoleCallback(PassOwnPtr<ClearConsoleCallback>) override; |
116 void setInspectObjectCallback(PassOwnPtr<InspectCallback>) override; | 116 void setInspectObjectCallback(PassOwnPtr<InspectCallback>) override; |
117 int ensureDefaultContextAvailable(v8::Local<v8::Context>) override; | 117 int ensureDefaultContextAvailable(v8::Local<v8::Context>) override; |
118 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8::Context
>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false
) override; | 118 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8::Context
>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false
) override; |
119 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Context>
, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) override; | 119 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Context>
, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) override; |
120 void disposeObjectGroup(const String16&) override; | 120 void disposeObjectGroup(const String16&) override; |
121 v8::Local<v8::Value> findObject(const String16& objectId, v8::Local<v8::Cont
ext>* = nullptr, String16* groupName = nullptr) override; | 121 v8::Local<v8::Value> findObject(const String16& objectId, v8::Local<v8::Cont
ext>* = nullptr, String16* groupName = nullptr) override; |
122 void addInspectedObject(PassOwnPtr<Inspectable>) override; | 122 void addInspectedObject(PassOwnPtr<Inspectable>) override; |
123 void clearInspectedObjects() override; | 123 void clearInspectedObjects() override; |
124 | 124 |
125 private: | 125 private: |
126 void reportExecutionContextCreated(v8::Local<v8::Context>, const String16& t
ype, const String16& origin, const String16& humanReadableName, const String16&
frameId) override; | 126 void reportExecutionContextCreated(v8::Local<v8::Context>, const String16& t
ype, const String16& origin, const String16& humanReadableName, const String16&
frameId) override; |
127 void reportExecutionContextDestroyed(v8::Local<v8::Context>) override; | 127 void reportExecutionContextDestroyed(v8::Local<v8::Context>) override; |
128 PassOwnPtr<protocol::Runtime::ExceptionDetails> createExceptionDetails(v8::I
solate*, v8::Local<v8::Message>); | 128 PassOwnPtr<protocol::Runtime::ExceptionDetails> createExceptionDetails(v8::I
solate*, v8::Local<v8::Message>); |
129 | 129 |
130 Client* m_client; | 130 Client* m_client; |
131 protocol::DictionaryValue* m_state; | 131 protocol::DictionaryValue* m_state; |
132 protocol::Frontend::Runtime* m_frontend; | 132 protocol::Frontend::Runtime* m_frontend; |
133 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 133 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
134 V8DebuggerImpl* m_debugger; | 134 V8DebuggerImpl* m_debugger; |
135 bool m_enabled; | 135 bool m_enabled; |
136 protocol::HashMap<String16, OwnPtr<v8::Global<v8::Script>>> m_compiledScript
s; | 136 protocol::HashMap<String16, OwnPtr<v8::Global<v8::Script>>> m_compiledScript
s; |
137 }; | 137 }; |
138 | 138 |
139 } // namespace blink | 139 } // namespace blink |
140 | 140 |
141 #endif // V8RuntimeAgentImpl_h | 141 #endif // V8RuntimeAgentImpl_h |
OLD | NEW |