| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 Maybe<protocol::Array<protocol::Runtime::InternalPropertyDescriptor>>* i
nternalProperties, | 98 Maybe<protocol::Array<protocol::Runtime::InternalPropertyDescriptor>>* i
nternalProperties, |
| 99 Maybe<protocol::Runtime::ExceptionDetails>*) override; | 99 Maybe<protocol::Runtime::ExceptionDetails>*) override; |
| 100 void releaseObjectGroup(ErrorString*, const String16& objectGroup) override; | 100 void releaseObjectGroup(ErrorString*, const String16& objectGroup) override; |
| 101 void run(ErrorString*) override; | 101 void run(ErrorString*) override; |
| 102 void setCustomObjectFormatterEnabled(ErrorString*, bool) override; | 102 void setCustomObjectFormatterEnabled(ErrorString*, bool) override; |
| 103 void discardConsoleEntries(ErrorString*) override; | 103 void discardConsoleEntries(ErrorString*) override; |
| 104 void compileScript(ErrorString*, | 104 void compileScript(ErrorString*, |
| 105 const String16& expression, | 105 const String16& expression, |
| 106 const String16& sourceURL, | 106 const String16& sourceURL, |
| 107 bool persistScript, | 107 bool persistScript, |
| 108 int executionContextId, | 108 const Maybe<int>& executionContextId, |
| 109 Maybe<String16>*, | 109 Maybe<String16>*, |
| 110 Maybe<protocol::Runtime::ExceptionDetails>*) override; | 110 Maybe<protocol::Runtime::ExceptionDetails>*) override; |
| 111 void runScript(ErrorString*, | 111 void runScript( |
| 112 const String16&, | 112 const String16&, |
| 113 int executionContextId, | 113 const Maybe<int>& executionContextId, |
| 114 const Maybe<String16>& objectGroup, | 114 const Maybe<String16>& objectGroup, |
| 115 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, | 115 const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, |
| 116 const Maybe<bool>& includeCommandLineAPI, | 116 const Maybe<bool>& includeCommandLineAPI, |
| 117 std::unique_ptr<protocol::Runtime::RemoteObject>* result, | 117 const Maybe<bool>& returnByValue, |
| 118 Maybe<protocol::Runtime::ExceptionDetails>*) override; | 118 const Maybe<bool>& generatePreview, |
| 119 const Maybe<bool>& awaitPromise, |
| 120 std::unique_ptr<RunScriptCallback>) override; |
| 119 | 121 |
| 120 void reset(); | 122 void reset(); |
| 121 void reportExecutionContextCreated(InspectedContext*); | 123 void reportExecutionContextCreated(InspectedContext*); |
| 122 void reportExecutionContextDestroyed(InspectedContext*); | 124 void reportExecutionContextDestroyed(InspectedContext*); |
| 123 void inspect(std::unique_ptr<protocol::Runtime::RemoteObject> objectToInspec
t, std::unique_ptr<protocol::DictionaryValue> hints); | 125 void inspect(std::unique_ptr<protocol::Runtime::RemoteObject> objectToInspec
t, std::unique_ptr<protocol::DictionaryValue> hints); |
| 124 void messageAdded(V8ConsoleMessage*); | 126 void messageAdded(V8ConsoleMessage*); |
| 125 bool enabled() const { return m_enabled; } | 127 bool enabled() const { return m_enabled; } |
| 126 | 128 |
| 127 private: | 129 private: |
| 128 void reportMessage(V8ConsoleMessage*, bool generatePreview); | 130 void reportMessage(V8ConsoleMessage*, bool generatePreview); |
| 129 | 131 |
| 130 V8InspectorSessionImpl* m_session; | 132 V8InspectorSessionImpl* m_session; |
| 131 protocol::DictionaryValue* m_state; | 133 protocol::DictionaryValue* m_state; |
| 132 protocol::Runtime::Frontend m_frontend; | 134 protocol::Runtime::Frontend m_frontend; |
| 133 V8InspectorImpl* m_inspector; | 135 V8InspectorImpl* m_inspector; |
| 134 bool m_enabled; | 136 bool m_enabled; |
| 135 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi
ledScripts; | 137 protocol::HashMap<String16, std::unique_ptr<v8::Global<v8::Script>>> m_compi
ledScripts; |
| 136 }; | 138 }; |
| 137 | 139 |
| 138 } // namespace blink | 140 } // namespace blink |
| 139 | 141 |
| 140 #endif // V8RuntimeAgentImpl_h | 142 #endif // V8RuntimeAgentImpl_h |
| OLD | NEW |