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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 typedef String ErrorString; | 56 typedef String ErrorString; |
57 | 57 |
58 class InspectorDOMDebuggerAgent FINAL : | 58 class InspectorDOMDebuggerAgent FINAL : |
59 public InspectorBaseAgent<InspectorDOMDebuggerAgent>, | 59 public InspectorBaseAgent<InspectorDOMDebuggerAgent>, |
60 public InspectorDebuggerAgent::Listener, | 60 public InspectorDebuggerAgent::Listener, |
61 public InspectorDOMAgent::Listener, | 61 public InspectorDOMAgent::Listener, |
62 public InspectorBackendDispatcher::DOMDebuggerCommandHandler { | 62 public InspectorBackendDispatcher::DOMDebuggerCommandHandler { |
63 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent); | 63 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent); |
64 public: | 64 public: |
65 static PassOwnPtr<InspectorDOMDebuggerAgent> create(InspectorDOMAgent*, Insp
ectorDebuggerAgent*); | 65 static PassOwnPtrWillBeRawPtr<InspectorDOMDebuggerAgent> create(InspectorDOM
Agent*, InspectorDebuggerAgent*); |
66 | 66 |
67 virtual ~InspectorDOMDebuggerAgent(); | 67 virtual ~InspectorDOMDebuggerAgent(); |
| 68 virtual void trace(Visitor*) OVERRIDE; |
68 | 69 |
69 // DOMDebugger API for InspectorFrontend | 70 // DOMDebugger API for InspectorFrontend |
70 virtual void setXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; | 71 virtual void setXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; |
71 virtual void removeXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; | 72 virtual void removeXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; |
72 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventNam
e, const String* targetName) OVERRIDE; | 73 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventNam
e, const String* targetName) OVERRIDE; |
73 virtual void removeEventListenerBreakpoint(ErrorString*, const String& event
Name, const String* targetName) OVERRIDE; | 74 virtual void removeEventListenerBreakpoint(ErrorString*, const String& event
Name, const String* targetName) OVERRIDE; |
74 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN
ame) OVERRIDE; | 75 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN
ame) OVERRIDE; |
75 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve
ntName) OVERRIDE; | 76 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve
ntName) OVERRIDE; |
76 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type)
OVERRIDE; | 77 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type)
OVERRIDE; |
77 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ
e) OVERRIDE; | 78 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ
e) OVERRIDE; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 void disable(); | 120 void disable(); |
120 | 121 |
121 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion
, JSONObject* description); | 122 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion
, JSONObject* description); |
122 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); | 123 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); |
123 bool hasBreakpoint(Node*, int type); | 124 bool hasBreakpoint(Node*, int type); |
124 void setBreakpoint(ErrorString*, const String& eventName, const String* targ
etName); | 125 void setBreakpoint(ErrorString*, const String& eventName, const String* targ
etName); |
125 void removeBreakpoint(ErrorString*, const String& eventName, const String* t
argetName); | 126 void removeBreakpoint(ErrorString*, const String& eventName, const String* t
argetName); |
126 | 127 |
127 void clear(); | 128 void clear(); |
128 | 129 |
129 InspectorDOMAgent* m_domAgent; | 130 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
130 InspectorDebuggerAgent* m_debuggerAgent; | 131 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; |
131 HashMap<Node*, uint32_t> m_domBreakpoints; | 132 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints; |
132 bool m_pauseInNextEventListener; | 133 bool m_pauseInNextEventListener; |
133 }; | 134 }; |
134 | 135 |
135 } // namespace WebCore | 136 } // namespace WebCore |
136 | 137 |
137 | 138 |
138 #endif // !defined(InspectorDOMDebuggerAgent_h) | 139 #endif // !defined(InspectorDOMDebuggerAgent_h) |
OLD | NEW |