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