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

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

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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
« no previous file with comments | « Source/core/inspector/InspectorAgent.cpp ('k') | Source/core/inspector/InspectorBaseAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef InspectorBaseAgent_h 31 #ifndef InspectorBaseAgent_h
32 #define InspectorBaseAgent_h 32 #define InspectorBaseAgent_h
33 33
34 #include "InspectorBackendDispatcher.h" 34 #include "InspectorBackendDispatcher.h"
35 #include <wtf/Forward.h> 35 #include <wtf/Forward.h>
36 #include <wtf/PassOwnPtr.h>
36 #include <wtf/Vector.h> 37 #include <wtf/Vector.h>
37 #include <wtf/text/WTFString.h> 38 #include <wtf/text/WTFString.h>
38 39
39 namespace WebCore { 40 namespace WebCore {
40 41
41 class InspectorFrontend; 42 class InspectorFrontend;
42 class InspectorCompositeState; 43 class InspectorCompositeState;
43 class InspectorState; 44 class InspectorState;
44 class InstrumentingAgents; 45 class InstrumentingAgents;
45 46
46 class InspectorBaseAgentInterface { 47 class InspectorBaseAgentInterface {
47 public: 48 public:
48 InspectorBaseAgentInterface(const String&, InstrumentingAgents*, InspectorCo mpositeState*); 49 InspectorBaseAgentInterface(const String&, InstrumentingAgents*, InspectorCo mpositeState*);
49 virtual ~InspectorBaseAgentInterface(); 50 virtual ~InspectorBaseAgentInterface();
50 51
51 virtual void setFrontend(InspectorFrontend*) { } 52 virtual void setFrontend(InspectorFrontend*) { }
52 virtual void clearFrontend() { } 53 virtual void clearFrontend() { }
53 virtual void restore() { } 54 virtual void restore() { }
54 virtual void registerInDispatcher(InspectorBackendDispatcher*) = 0; 55 virtual void registerInDispatcher(InspectorBackendDispatcher*) = 0;
55 virtual void discardAgent() { } 56 virtual void discardAgent() { }
56 57
57 String name() { return m_name; } 58 String name() { return m_name; }
58 59
59 virtual void reportMemoryUsage(MemoryObjectInfo*) const;
60
61 protected: 60 protected:
62 InstrumentingAgents* m_instrumentingAgents; 61 InstrumentingAgents* m_instrumentingAgents;
63 InspectorState* m_state; 62 InspectorState* m_state;
64 63
65 private: 64 private:
66 String m_name; 65 String m_name;
67 }; 66 };
68 67
69 class InspectorAgentRegistry { 68 class InspectorAgentRegistry {
70 public: 69 public:
(...skipping 22 matching lines...) Expand all
93 protected: 92 protected:
94 InspectorBaseAgent(const String& name, InstrumentingAgents* instrumentingAge nts, InspectorCompositeState* inspectorState) 93 InspectorBaseAgent(const String& name, InstrumentingAgents* instrumentingAge nts, InspectorCompositeState* inspectorState)
95 : InspectorBaseAgentInterface(name, instrumentingAgents, inspectorState) 94 : InspectorBaseAgentInterface(name, instrumentingAgents, inspectorState)
96 { 95 {
97 } 96 }
98 }; 97 };
99 98
100 } // namespace WebCore 99 } // namespace WebCore
101 100
102 #endif // !defined(InspectorBaseAgent_h) 101 #endif // !defined(InspectorBaseAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorAgent.cpp ('k') | Source/core/inspector/InspectorBaseAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698