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

Unified Diff: Source/core/inspector/InspectorTimelineAgent.h

Issue 306053010: Tried using CrossThreadPersistent for workerDebuggerAgents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/core/inspector/InspectorTimelineAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorTimelineAgent.h
diff --git a/Source/core/inspector/InspectorTimelineAgent.h b/Source/core/inspector/InspectorTimelineAgent.h
index 1c5375532cf2f964e0e2f89fbb387442da3a70ee..7124281bffce29f899fef421feecbd95f50c0e63 100644
--- a/Source/core/inspector/InspectorTimelineAgent.h
+++ b/Source/core/inspector/InspectorTimelineAgent.h
@@ -89,8 +89,8 @@ class XMLHttpRequest;
typedef String ErrorString;
class InspectorTimelineAgent FINAL
- : public TraceEventTarget<InspectorTimelineAgent>
- , public InspectorBaseAgent<InspectorTimelineAgent>
+ : public InspectorBaseAgent<InspectorTimelineAgent>
+ , public TraceEventTarget<InspectorTimelineAgent>
, public ScriptGCEventListener
, public InspectorBackendDispatcher::TimelineCommandHandler
, public PlatformInstrumentationClient {
@@ -114,13 +114,14 @@ public:
uint64_t limitGPUMemoryBytes;
};
- static PassOwnPtr<InspectorTimelineAgent> create(InspectorPageAgent* pageAgent, InspectorLayerTreeAgent* layerTreeAgent,
+ static PassOwnPtrWillBeRawPtr<InspectorTimelineAgent> create(InspectorPageAgent* pageAgent, InspectorLayerTreeAgent* layerTreeAgent,
InspectorOverlay* overlay, InspectorType type, InspectorClient* client)
{
- return adoptPtr(new InspectorTimelineAgent(pageAgent, layerTreeAgent, overlay, type, client));
+ return adoptPtrWillBeNoop(new InspectorTimelineAgent(pageAgent, layerTreeAgent, overlay, type, client));
}
virtual ~InspectorTimelineAgent();
+ virtual void trace(Visitor*) OVERRIDE;
virtual void setFrontend(InspectorFrontend*) OVERRIDE;
virtual void clearFrontend() OVERRIDE;
@@ -286,8 +287,8 @@ private:
void innerStop(bool fromConsole);
void setLiveEvents(const String&);
- InspectorPageAgent* m_pageAgent;
- InspectorLayerTreeAgent* m_layerTreeAgent;
+ RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
+ RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent;
InspectorFrontend::Timeline* m_frontend;
InspectorClient* m_client;
InspectorOverlay* m_overlay;
@@ -313,7 +314,7 @@ private:
double m_paintSetupEnd;
RefPtr<JSONObject> m_gpuTask;
RefPtr<JSONValue> m_pendingLayerTreeData;
- typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap;
+ typedef WillBeHeapHashMap<ThreadIdentifier, OwnPtrWillBeMember<TimelineThreadState> > ThreadStateMap;
ThreadStateMap m_threadStates;
bool m_mayEmitFirstPaint;
HashSet<String> m_liveEvents;
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | Source/core/inspector/InspectorTimelineAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698