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

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, 5 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class Node; 54 class Node;
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 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InspectorDOMDebuggerAgent);
64 public: 65 public:
65 static PassOwnPtr<InspectorDOMDebuggerAgent> create(InspectorDOMAgent*, Insp ectorDebuggerAgent*); 66 static PassOwnPtrWillBeRawPtr<InspectorDOMDebuggerAgent> create(InspectorDOM Agent*, InspectorDebuggerAgent*);
66 67
67 virtual ~InspectorDOMDebuggerAgent(); 68 virtual ~InspectorDOMDebuggerAgent();
69 virtual void trace(Visitor*) OVERRIDE;
68 70
69 // DOMDebugger API for InspectorFrontend 71 // DOMDebugger API for InspectorFrontend
70 virtual void setXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; 72 virtual void setXHRBreakpoint(ErrorString*, const String& url) OVERRIDE;
71 virtual void removeXHRBreakpoint(ErrorString*, const String& url) OVERRIDE; 73 virtual void removeXHRBreakpoint(ErrorString*, const String& url) OVERRIDE;
72 virtual void setEventListenerBreakpoint(ErrorString*, const String& eventNam e, const String* targetName) OVERRIDE; 74 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; 75 virtual void removeEventListenerBreakpoint(ErrorString*, const String& event Name, const String* targetName) OVERRIDE;
74 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN ame) OVERRIDE; 76 virtual void setInstrumentationBreakpoint(ErrorString*, const String& eventN ame) OVERRIDE;
75 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve ntName) OVERRIDE; 77 virtual void removeInstrumentationBreakpoint(ErrorString*, const String& eve ntName) OVERRIDE;
76 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type) OVERRIDE; 78 virtual void setDOMBreakpoint(ErrorString*, int nodeId, const String& type) OVERRIDE;
77 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ e) OVERRIDE; 79 virtual void removeDOMBreakpoint(ErrorString*, int nodeId, const String& typ e) OVERRIDE;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void disable(); 121 void disable();
120 122
121 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description); 123 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion , JSONObject* description);
122 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set); 124 void updateSubtreeBreakpoints(Node*, uint32_t rootMask, bool set);
123 bool hasBreakpoint(Node*, int type); 125 bool hasBreakpoint(Node*, int type);
124 void setBreakpoint(ErrorString*, const String& eventName, const String* targ etName); 126 void setBreakpoint(ErrorString*, const String& eventName, const String* targ etName);
125 void removeBreakpoint(ErrorString*, const String& eventName, const String* t argetName); 127 void removeBreakpoint(ErrorString*, const String& eventName, const String* t argetName);
126 128
127 void clear(); 129 void clear();
128 130
129 InspectorDOMAgent* m_domAgent; 131 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
130 InspectorDebuggerAgent* m_debuggerAgent; 132 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent;
131 HashMap<Node*, uint32_t> m_domBreakpoints; 133 WillBeHeapHashMap<RawPtrWillBeMember<Node>, uint32_t> m_domBreakpoints;
132 bool m_pauseInNextEventListener; 134 bool m_pauseInNextEventListener;
133 }; 135 };
134 136
135 } // namespace blink 137 } // namespace blink
136 138
137 139
138 #endif // !defined(InspectorDOMDebuggerAgent_h) 140 #endif // !defined(InspectorDOMDebuggerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMAgent.cpp ('k') | Source/core/inspector/InspectorDOMDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698