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 24 matching lines...) Expand all Loading... |
35 #include "core/inspector/V8DebuggerAgent.h" | 35 #include "core/inspector/V8DebuggerAgent.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class CORE_EXPORT InspectorDebuggerAgent | 39 class CORE_EXPORT InspectorDebuggerAgent |
40 : public InspectorBaseAgent<InspectorDebuggerAgent, InspectorFrontend::Debug
ger> | 40 : public InspectorBaseAgent<InspectorDebuggerAgent, InspectorFrontend::Debug
ger> |
41 , public InspectorBackendDispatcher::DebuggerCommandHandler | 41 , public InspectorBackendDispatcher::DebuggerCommandHandler |
42 , public V8DebuggerAgent::Client { | 42 , public V8DebuggerAgent::Client { |
43 public: | 43 public: |
44 ~InspectorDebuggerAgent() override; | 44 ~InspectorDebuggerAgent() override; |
| 45 DECLARE_VIRTUAL_TRACE(); |
45 | 46 |
46 // InspectorBackendDispatcher::DebuggerCommandHandler implementation. | 47 // InspectorBackendDispatcher::DebuggerCommandHandler implementation. |
47 void enable(ErrorString*) override; | 48 void enable(ErrorString*) override; |
48 void disable(ErrorString*) override; | 49 void disable(ErrorString*) override; |
49 void setBreakpointsActive(ErrorString*, bool inActive) override; | 50 void setBreakpointsActive(ErrorString*, bool inActive) override; |
50 void setSkipAllPauses(ErrorString*, bool inSkipped) override; | 51 void setSkipAllPauses(ErrorString*, bool inSkipped) override; |
51 void setBreakpointByUrl(ErrorString*, int inLineNumber, const String* inUrl,
const String* inUrlRegex, const int* inColumnNumber, const String* inCondition,
TypeBuilder::Debugger::BreakpointId* outBreakpointId, RefPtr<TypeBuilder::Array
<TypeBuilder::Debugger::Location>>& outLocations) override; | 52 void setBreakpointByUrl(ErrorString*, int inLineNumber, const String* inUrl,
const String* inUrlRegex, const int* inColumnNumber, const String* inCondition,
TypeBuilder::Debugger::BreakpointId* outBreakpointId, RefPtr<TypeBuilder::Array
<TypeBuilder::Debugger::Location>>& outLocations) override; |
52 void setBreakpoint(ErrorString*, const RefPtr<JSONObject>& inLocation, const
String* inCondition, TypeBuilder::Debugger::BreakpointId* outBreakpointId, RefP
tr<TypeBuilder::Debugger::Location>& outActualLocation) override; | 53 void setBreakpoint(ErrorString*, const RefPtr<JSONObject>& inLocation, const
String* inCondition, TypeBuilder::Debugger::BreakpointId* outBreakpointId, RefP
tr<TypeBuilder::Debugger::Location>& outActualLocation) override; |
53 void removeBreakpoint(ErrorString*, const String& inBreakpointId) override; | 54 void removeBreakpoint(ErrorString*, const String& inBreakpointId) override; |
54 void continueToLocation(ErrorString*, const RefPtr<JSONObject>& inLocation,
const bool* inInterstatementLocation) override; | 55 void continueToLocation(ErrorString*, const RefPtr<JSONObject>& inLocation,
const bool* inInterstatementLocation) override; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void init() override; | 102 void init() override; |
102 void setFrontend(InspectorFrontend*) override; | 103 void setFrontend(InspectorFrontend*) override; |
103 void clearFrontend() override; | 104 void clearFrontend() override; |
104 void restore() override; | 105 void restore() override; |
105 | 106 |
106 V8DebuggerAgent* v8DebuggerAgent() const { return m_v8DebuggerAgent.get(); } | 107 V8DebuggerAgent* v8DebuggerAgent() const { return m_v8DebuggerAgent.get(); } |
107 | 108 |
108 protected: | 109 protected: |
109 InspectorDebuggerAgent(InjectedScriptManager*, V8Debugger*, int contextGroup
Id); | 110 InspectorDebuggerAgent(InjectedScriptManager*, V8Debugger*, int contextGroup
Id); |
110 | 111 |
111 OwnPtr<V8DebuggerAgent> m_v8DebuggerAgent; | 112 OwnPtrWillBeMember<V8DebuggerAgent> m_v8DebuggerAgent; |
112 }; | 113 }; |
113 | 114 |
114 } // namespace blink | 115 } // namespace blink |
115 | 116 |
116 | 117 |
117 #endif // !defined(InspectorDebuggerAgent_h) | 118 #endif // !defined(InspectorDebuggerAgent_h) |
OLD | NEW |