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

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

Issue 16934003: Inspector: replace generic discardAgents logic with explicit call to discard a listener. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments Created 7 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 class InspectorDOMAgent : public InspectorBaseAgent<InspectorDOMAgent>, public I nspectorBackendDispatcher::DOMCommandHandler { 94 class InspectorDOMAgent : public InspectorBaseAgent<InspectorDOMAgent>, public I nspectorBackendDispatcher::DOMCommandHandler {
95 WTF_MAKE_NONCOPYABLE(InspectorDOMAgent); 95 WTF_MAKE_NONCOPYABLE(InspectorDOMAgent);
96 public: 96 public:
97 struct DOMListener { 97 struct DOMListener {
98 virtual ~DOMListener() 98 virtual ~DOMListener()
99 { 99 {
100 } 100 }
101 virtual void didRemoveDocument(Document*) = 0; 101 virtual void didRemoveDocument(Document*) = 0;
102 virtual void didRemoveDOMNode(Node*) = 0; 102 virtual void didRemoveDOMNode(Node*) = 0;
103 virtual void didModifyDOMAttr(Element*) = 0; 103 virtual void didModifyDOMAttr(Element*) = 0;
104 virtual void willDestroyDOMAgent() = 0;
104 }; 105 };
105 106
106 static PassOwnPtr<InspectorDOMAgent> create(InstrumentingAgents* instrumenti ngAgents, InspectorPageAgent* pageAgent, InspectorCompositeState* inspectorState , InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay, Inspe ctorClient* client) 107 static PassOwnPtr<InspectorDOMAgent> create(InstrumentingAgents* instrumenti ngAgents, InspectorPageAgent* pageAgent, InspectorCompositeState* inspectorState , InjectedScriptManager* injectedScriptManager, InspectorOverlay* overlay, Inspe ctorClient* client)
107 { 108 {
108 return adoptPtr(new InspectorDOMAgent(instrumentingAgents, pageAgent, in spectorState, injectedScriptManager, overlay, client)); 109 return adoptPtr(new InspectorDOMAgent(instrumentingAgents, pageAgent, in spectorState, injectedScriptManager, overlay, client));
109 } 110 }
110 111
111 static String toErrorString(const ExceptionCode&); 112 static String toErrorString(const ExceptionCode&);
112 113
113 ~InspectorDOMAgent(); 114 ~InspectorDOMAgent();
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 OwnPtr<HighlightConfig> m_inspectModeHighlightConfig; 270 OwnPtr<HighlightConfig> m_inspectModeHighlightConfig;
270 OwnPtr<InspectorHistory> m_history; 271 OwnPtr<InspectorHistory> m_history;
271 OwnPtr<DOMEditor> m_domEditor; 272 OwnPtr<DOMEditor> m_domEditor;
272 bool m_suppressAttributeModifiedEvent; 273 bool m_suppressAttributeModifiedEvent;
273 }; 274 };
274 275
275 276
276 } // namespace WebCore 277 } // namespace WebCore
277 278
278 #endif // !defined(InspectorDOMAgent_h) 279 #endif // !defined(InspectorDOMAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorController.cpp ('k') | Source/core/inspector/InspectorDOMAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698