| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef InspectorRuntimeAgent_h | 31 #ifndef InspectorRuntimeAgent_h |
| 32 #define InspectorRuntimeAgent_h | 32 #define InspectorRuntimeAgent_h |
| 33 | 33 |
| 34 #if ENABLE(INSPECTOR) | |
| 35 | 34 |
| 36 #include "InspectorBaseAgent.h" | 35 #include "InspectorBaseAgent.h" |
| 37 #include "ScriptState.h" | 36 #include "ScriptState.h" |
| 38 #include <wtf/Forward.h> | 37 #include <wtf/Forward.h> |
| 39 #include <wtf/Noncopyable.h> | 38 #include <wtf/Noncopyable.h> |
| 40 | 39 |
| 41 namespace WebCore { | 40 namespace WebCore { |
| 42 | 41 |
| 43 class InjectedScript; | 42 class InjectedScript; |
| 44 class InjectedScriptManager; | 43 class InjectedScriptManager; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 const bool* doNotPauseOnExceptionsAndMuteConsole, | 77 const bool* doNotPauseOnExceptionsAndMuteConsole, |
| 79 const bool* returnByValue, | 78 const bool* returnByValue, |
| 80 const bool* generatePreview, | 79 const bool* generatePreview, |
| 81 RefPtr<TypeBuilder::Runtime::RemoteObject>& result, | 80 RefPtr<TypeBuilder::Runtime::RemoteObject>& result, |
| 82 TypeBuilder::OptOutput<bool>* wasThrown); | 81 TypeBuilder::OptOutput<bool>* wasThrown); |
| 83 virtual void releaseObject(ErrorString*, const String& objectId); | 82 virtual void releaseObject(ErrorString*, const String& objectId); |
| 84 virtual void getProperties(ErrorString*, const String& objectId, const bool*
ownProperties, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::PropertyDescript
or> >& result, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::InternalPropertyD
escriptor> >& internalProperties); | 83 virtual void getProperties(ErrorString*, const String& objectId, const bool*
ownProperties, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::PropertyDescript
or> >& result, RefPtr<TypeBuilder::Array<TypeBuilder::Runtime::InternalPropertyD
escriptor> >& internalProperties); |
| 85 virtual void releaseObjectGroup(ErrorString*, const String& objectGroup); | 84 virtual void releaseObjectGroup(ErrorString*, const String& objectGroup); |
| 86 virtual void run(ErrorString*); | 85 virtual void run(ErrorString*); |
| 87 | 86 |
| 88 #if ENABLE(JAVASCRIPT_DEBUGGER) | |
| 89 void setScriptDebugServer(ScriptDebugServer*); | 87 void setScriptDebugServer(ScriptDebugServer*); |
| 90 #endif | |
| 91 | 88 |
| 92 protected: | 89 protected: |
| 93 InspectorRuntimeAgent(InstrumentingAgents*, InspectorCompositeState*, Inject
edScriptManager*); | 90 InspectorRuntimeAgent(InstrumentingAgents*, InspectorCompositeState*, Inject
edScriptManager*); |
| 94 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) = 0; | 91 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) = 0; |
| 95 | 92 |
| 96 virtual void muteConsole() = 0; | 93 virtual void muteConsole() = 0; |
| 97 virtual void unmuteConsole() = 0; | 94 virtual void unmuteConsole() = 0; |
| 98 | 95 |
| 99 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } | 96 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } |
| 100 bool m_enabled; | 97 bool m_enabled; |
| 101 | 98 |
| 102 private: | 99 private: |
| 103 InjectedScriptManager* m_injectedScriptManager; | 100 InjectedScriptManager* m_injectedScriptManager; |
| 104 #if ENABLE(JAVASCRIPT_DEBUGGER) | |
| 105 ScriptDebugServer* m_scriptDebugServer; | 101 ScriptDebugServer* m_scriptDebugServer; |
| 106 #endif | |
| 107 }; | 102 }; |
| 108 | 103 |
| 109 } // namespace WebCore | 104 } // namespace WebCore |
| 110 | 105 |
| 111 #endif // ENABLE(INSPECTOR) | |
| 112 #endif // InspectorRuntimeAgent_h | 106 #endif // InspectorRuntimeAgent_h |
| OLD | NEW |