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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const RefPtr<JSONArray>* optionalArguments, | 71 const RefPtr<JSONArray>* optionalArguments, |
72 const bool* doNotPauseOnExceptionsAndMuteConsole, | 72 const bool* doNotPauseOnExceptionsAndMuteConsole, |
73 const bool* returnByValue, | 73 const bool* returnByValue, |
74 const bool* generatePreview, | 74 const bool* generatePreview, |
75 RefPtr<TypeBuilder::Runtime::RemoteObject>& result, | 75 RefPtr<TypeBuilder::Runtime::RemoteObject>& result, |
76 TypeBuilder::OptOutput<bool>* wasThrown) OVERRIDE FINAL; | 76 TypeBuilder::OptOutput<bool>* wasThrown) OVERRIDE FINAL; |
77 virtual void releaseObject(ErrorString*, const String& objectId) OVERRIDE FI
NAL; | 77 virtual void releaseObject(ErrorString*, const String& objectId) OVERRIDE FI
NAL; |
78 virtual void getProperties(ErrorString*, const String& objectId, const bool*
ownProperties, const bool* accessorPropertiesOnly, RefPtr<TypeBuilder::Array<Ty
peBuilder::Runtime::PropertyDescriptor> >& result, RefPtr<TypeBuilder::Array<Typ
eBuilder::Runtime::InternalPropertyDescriptor> >& internalProperties) OVERRIDE F
INAL; | 78 virtual void getProperties(ErrorString*, const String& objectId, const bool*
ownProperties, const bool* accessorPropertiesOnly, RefPtr<TypeBuilder::Array<Ty
peBuilder::Runtime::PropertyDescriptor> >& result, RefPtr<TypeBuilder::Array<Typ
eBuilder::Runtime::InternalPropertyDescriptor> >& internalProperties) OVERRIDE F
INAL; |
79 virtual void releaseObjectGroup(ErrorString*, const String& objectGroup) OVE
RRIDE FINAL; | 79 virtual void releaseObjectGroup(ErrorString*, const String& objectGroup) OVE
RRIDE FINAL; |
80 virtual void run(ErrorString*) OVERRIDE; | 80 virtual void run(ErrorString*) OVERRIDE; |
| 81 virtual void isRunRequired(ErrorString*, bool* out_result) OVERRIDE; |
81 | 82 |
82 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; | 83 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; |
83 virtual void clearFrontend() OVERRIDE FINAL; | 84 virtual void clearFrontend() OVERRIDE FINAL; |
84 virtual void restore() OVERRIDE FINAL; | 85 virtual void restore() OVERRIDE FINAL; |
85 | 86 |
86 protected: | 87 protected: |
87 InspectorRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*); | 88 InspectorRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*); |
88 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) = 0; | 89 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) = 0; |
89 | 90 |
90 virtual void muteConsole() = 0; | 91 virtual void muteConsole() = 0; |
91 virtual void unmuteConsole() = 0; | 92 virtual void unmuteConsole() = 0; |
92 | 93 |
93 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } | 94 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } |
94 void addExecutionContextToFrontend(ScriptState*, bool isPageContext, const S
tring& name, const String& frameId); | 95 void addExecutionContextToFrontend(ScriptState*, bool isPageContext, const S
tring& name, const String& frameId); |
95 | 96 |
96 bool m_enabled; | 97 bool m_enabled; |
97 InspectorFrontend::Runtime* m_frontend; | 98 InspectorFrontend::Runtime* m_frontend; |
98 | 99 |
99 typedef HashMap<RefPtr<ScriptState>, int> ScriptStateToId; | 100 typedef HashMap<RefPtr<ScriptState>, int> ScriptStateToId; |
100 ScriptStateToId m_scriptStateToId; | 101 ScriptStateToId m_scriptStateToId; |
101 | 102 |
102 private: | 103 private: |
103 InjectedScriptManager* m_injectedScriptManager; | 104 InjectedScriptManager* m_injectedScriptManager; |
104 ScriptDebugServer* m_scriptDebugServer; | 105 ScriptDebugServer* m_scriptDebugServer; |
105 }; | 106 }; |
106 | 107 |
107 } // namespace WebCore | 108 } // namespace WebCore |
108 | 109 |
109 #endif // InspectorRuntimeAgent_h | 110 #endif // InspectorRuntimeAgent_h |
OLD | NEW |