OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 26 matching lines...) Expand all Loading... |
37 #include "wtf/HashMap.h" | 37 #include "wtf/HashMap.h" |
38 #include "wtf/Noncopyable.h" | 38 #include "wtf/Noncopyable.h" |
39 #include "wtf/OwnPtr.h" | 39 #include "wtf/OwnPtr.h" |
40 #include "wtf/PassOwnPtr.h" | 40 #include "wtf/PassOwnPtr.h" |
41 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 class InjectedScriptManager; | 45 class InjectedScriptManager; |
46 class HeapStatsUpdateTask; | 46 class HeapStatsUpdateTask; |
47 class ScriptHeapSnapshot; | |
48 | 47 |
49 typedef String ErrorString; | 48 typedef String ErrorString; |
50 | 49 |
51 class InspectorHeapProfilerAgent final : public InspectorBaseAgent<InspectorHeap
ProfilerAgent>, public InspectorBackendDispatcher::HeapProfilerCommandHandler { | 50 class InspectorHeapProfilerAgent final : public InspectorBaseAgent<InspectorHeap
ProfilerAgent>, public InspectorBackendDispatcher::HeapProfilerCommandHandler { |
52 WTF_MAKE_NONCOPYABLE(InspectorHeapProfilerAgent); | 51 WTF_MAKE_NONCOPYABLE(InspectorHeapProfilerAgent); |
53 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 52 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
54 public: | 53 public: |
55 static PassOwnPtrWillBeRawPtr<InspectorHeapProfilerAgent> create(InjectedScr
iptManager*); | 54 static PassOwnPtrWillBeRawPtr<InspectorHeapProfilerAgent> create(InjectedScr
iptManager*); |
56 virtual ~InspectorHeapProfilerAgent(); | 55 virtual ~InspectorHeapProfilerAgent(); |
57 virtual void trace(Visitor*) override; | 56 virtual void trace(Visitor*) override; |
(...skipping 29 matching lines...) Expand all Loading... |
87 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 86 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
88 InspectorFrontend::HeapProfiler* m_frontend; | 87 InspectorFrontend::HeapProfiler* m_frontend; |
89 unsigned m_nextUserInitiatedHeapSnapshotNumber; | 88 unsigned m_nextUserInitiatedHeapSnapshotNumber; |
90 OwnPtrWillBeMember<HeapStatsUpdateTask> m_heapStatsUpdateTask; | 89 OwnPtrWillBeMember<HeapStatsUpdateTask> m_heapStatsUpdateTask; |
91 }; | 90 }; |
92 | 91 |
93 } // namespace blink | 92 } // namespace blink |
94 | 93 |
95 | 94 |
96 #endif // !defined(InspectorHeapProfilerAgent_h) | 95 #endif // !defined(InspectorHeapProfilerAgent_h) |
OLD | NEW |