OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 12 matching lines...) Expand all Loading... |
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef InspectorDebuggerAgent_h | 30 #ifndef InspectorDebuggerAgent_h |
31 #define InspectorDebuggerAgent_h | 31 #define InspectorDebuggerAgent_h |
32 | 32 |
| 33 #include "bindings/core/v8/Nullable.h" |
33 #include "bindings/core/v8/ScriptState.h" | 34 #include "bindings/core/v8/ScriptState.h" |
34 #include "bindings/core/v8/ScriptValue.h" | 35 #include "bindings/core/v8/ScriptValue.h" |
35 #include "core/InspectorFrontend.h" | 36 #include "core/InspectorFrontend.h" |
36 #include "core/frame/ConsoleTypes.h" | 37 #include "core/frame/ConsoleTypes.h" |
37 #include "core/inspector/ConsoleAPITypes.h" | 38 #include "core/inspector/ConsoleAPITypes.h" |
38 #include "core/inspector/InspectorBaseAgent.h" | 39 #include "core/inspector/InspectorBaseAgent.h" |
39 #include "core/inspector/PromiseTracker.h" | 40 #include "core/inspector/PromiseTracker.h" |
40 #include "core/inspector/ScriptBreakpoint.h" | 41 #include "core/inspector/ScriptBreakpoint.h" |
41 #include "core/inspector/ScriptDebugListener.h" | 42 #include "core/inspector/ScriptDebugListener.h" |
42 #include "wtf/Forward.h" | 43 #include "wtf/Forward.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 85 |
85 void init() final; | 86 void init() final; |
86 void setFrontend(InspectorFrontend*) final; | 87 void setFrontend(InspectorFrontend*) final; |
87 void clearFrontend() final; | 88 void clearFrontend() final; |
88 void restore() final; | 89 void restore() final; |
89 | 90 |
90 bool isPaused(); | 91 bool isPaused(); |
91 void addMessageToConsole(ConsoleMessage*); | 92 void addMessageToConsole(ConsoleMessage*); |
92 | 93 |
93 String preprocessEventListener(LocalFrame*, const String& source, const Stri
ng& url, const String& functionName); | 94 String preprocessEventListener(LocalFrame*, const String& source, const Stri
ng& url, const String& functionName); |
94 PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSourceCode&
); | 95 Nullable<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSourceCode&); |
95 | 96 |
96 // Part of the protocol. | 97 // Part of the protocol. |
97 void enable(ErrorString*) final; | 98 void enable(ErrorString*) final; |
98 void disable(ErrorString*) final; | 99 void disable(ErrorString*) final; |
99 void setBreakpointsActive(ErrorString*, bool active) final; | 100 void setBreakpointsActive(ErrorString*, bool active) final; |
100 void setSkipAllPauses(ErrorString*, bool skipped, const bool* untilReload) f
inal; | 101 void setSkipAllPauses(ErrorString*, bool skipped, const bool* untilReload) f
inal; |
101 | 102 |
102 void setBreakpointByUrl(ErrorString*, int lineNumber, const String* optional
URL, const String* optionalURLRegex, const int* optionalColumnNumber, const Stri
ng* optionalCondition, TypeBuilder::Debugger::BreakpointId*, RefPtr<TypeBuilder:
:Array<TypeBuilder::Debugger::Location> >& locations) final; | 103 void setBreakpointByUrl(ErrorString*, int lineNumber, const String* optional
URL, const String* optionalURLRegex, const int* optionalColumnNumber, const Stri
ng* optionalCondition, TypeBuilder::Debugger::BreakpointId*, RefPtr<TypeBuilder:
:Array<TypeBuilder::Debugger::Location> >& locations) final; |
103 void setBreakpoint(ErrorString*, const RefPtr<JSONObject>& location, const S
tring* optionalCondition, TypeBuilder::Debugger::BreakpointId*, RefPtr<TypeBuild
er::Debugger::Location>& actualLocation) final; | 104 void setBreakpoint(ErrorString*, const RefPtr<JSONObject>& location, const S
tring* optionalCondition, TypeBuilder::Debugger::BreakpointId*, RefPtr<TypeBuild
er::Debugger::Location>& actualLocation) final; |
104 void removeBreakpoint(ErrorString*, const String& breakpointId) final; | 105 void removeBreakpoint(ErrorString*, const String& breakpointId) final; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 RefPtrWillBeMember<AsyncCallChain> m_currentAsyncCallChain; | 292 RefPtrWillBeMember<AsyncCallChain> m_currentAsyncCallChain; |
292 unsigned m_nestedAsyncCallCount; | 293 unsigned m_nestedAsyncCallCount; |
293 bool m_performingAsyncStepIn; | 294 bool m_performingAsyncStepIn; |
294 WillBeHeapVector<RawPtrWillBeMember<AsyncCallTrackingListener>> m_asyncCallT
rackingListeners; | 295 WillBeHeapVector<RawPtrWillBeMember<AsyncCallTrackingListener>> m_asyncCallT
rackingListeners; |
295 }; | 296 }; |
296 | 297 |
297 } // namespace blink | 298 } // namespace blink |
298 | 299 |
299 | 300 |
300 #endif // InspectorDebuggerAgent_h | 301 #endif // InspectorDebuggerAgent_h |
OLD | NEW |