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

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

Powered by Google App Engine
This is Rietveld 408576698