Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Side by Side Diff: Source/core/inspector/InspectorDOMDebuggerAgent.h

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class InspectorFrontend; 49 class InspectorFrontend;
50 class InstrumentingAgents; 50 class InstrumentingAgents;
51 class JSONObject; 51 class JSONObject;
52 class Node; 52 class Node;
53 53
54 typedef String ErrorString; 54 typedef String ErrorString;
55 55
56 class InspectorDOMDebuggerAgent FINAL : public InspectorBaseAgent<InspectorDOMDe buggerAgent>, public InspectorDebuggerAgent::Listener, public InspectorBackendDi spatcher::DOMDebuggerCommandHandler { 56 class InspectorDOMDebuggerAgent FINAL : public InspectorBaseAgent<InspectorDOMDe buggerAgent>, public InspectorDebuggerAgent::Listener, public InspectorBackendDi spatcher::DOMDebuggerCommandHandler {
57 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent); 57 WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent);
58 public: 58 public:
59 static PassOwnPtr<InspectorDOMDebuggerAgent> create(InspectorDOMAgent*, Insp ectorDebuggerAgent*); 59 static PassOwnPtrWillBeRawPtr<InspectorDOMDebuggerAgent> create(InspectorDOM Agent*, InspectorDebuggerAgent*);
60 60
61 virtual ~InspectorDOMDebuggerAgent(); 61 virtual ~InspectorDOMDebuggerAgent();
62 virtual void trace(Visitor*) OVERRIDE;
62 63
63 // DOMDebugger API for InspectorFrontend 64 // DOMDebugger API for InspectorFrontend
64 virtual void setXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; 65 virtual void setXHRBreakpoint(ErrorString*, const String& url) OVERRIDE;
65 virtual void removeXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; 66 virtual void removeXHRBreakpoint(ErrorString*, const String& url) OVERRIDE;
66 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventNam e) OVERRIDE; 67 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventNam e) OVERRIDE;
67 virtual void removeEventListenerBreakpoint(ErrorString*, const String& event Name) OVERRIDE; 68 virtual void removeEventListenerBreakpoint(ErrorString*, const String& event Name) OVERRIDE;
68 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN ame) OVERRIDE; 69 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN ame) OVERRIDE;
69 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve ntName) OVERRIDE; 70 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve ntName) OVERRIDE;
70 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type) OVERRIDE; 71 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type) OVERRIDE;
71 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ e) OVERRIDE; 72 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ e) OVERRIDE;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void disable(); 110 void disable();
110 111
111 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description); 112 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description);
112 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); 113 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set);
113 bool hasBreakpoint(Node*, int type); 114 bool hasBreakpoint(Node*, int type);
114 void setBreakpoint(ErrorString*, const String& eventName); 115 void setBreakpoint(ErrorString*, const String& eventName);
115 void removeBreakpoint(ErrorString*, const String& eventName); 116 void removeBreakpoint(ErrorString*, const String& eventName);
116 117
117 void clear(); 118 void clear();
118 119
119 InspectorDOMAgent* m_domAgent; 120 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
120 InspectorDebuggerAgent* m_debuggerAgent; 121 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
121 HashMap<Node*, uint32_t> m_domBreakpoints; 122 HashMap<Node*, uint32_t> m_domBreakpoints;
122 bool m_pauseInNextEventListener; 123 bool m_pauseInNextEventListener;
123 }; 124 };
124 125
125 } // namespace WebCore 126 } // namespace WebCore
126 127
127 128
128 #endif // !defined(InspectorDOMDebuggerAgent_h) 129 #endif // !defined(InspectorDOMDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698