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

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

Issue 323043002: Oilpan: Prepare moving InspectorAgent related classes to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/InspectorBaseAgent.h ('k') | Source/core/inspector/InspectorCSSAgent.h » ('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 25 matching lines...) Expand all
36 36
37 namespace blink { 37 namespace blink {
38 38
39 InspectorAgent::InspectorAgent(const String& name) 39 InspectorAgent::InspectorAgent(const String& name)
40 : m_name(name) 40 : m_name(name)
41 { 41 {
42 } 42 }
43 43
44 InspectorAgent::~InspectorAgent() 44 InspectorAgent::~InspectorAgent()
45 { 45 {
46 #if ENABLE(OILPAN)
47 m_state = nullptr;
48 #endif
46 } 49 }
47 50
48 void InspectorAgent::trace(Visitor* visitor) 51 void InspectorAgent::trace(Visitor* visitor)
49 { 52 {
50 visitor->trace(m_instrumentingAgents); 53 visitor->trace(m_instrumentingAgents);
54 visitor->trace(m_state);
51 } 55 }
52 56
53 void InspectorAgent::appended(InstrumentingAgents* instrumentingAgents, Inspecto rState* inspectorState) 57 void InspectorAgent::appended(InstrumentingAgents* instrumentingAgents, Inspecto rState* inspectorState)
54 { 58 {
55 m_instrumentingAgents = instrumentingAgents; 59 m_instrumentingAgents = instrumentingAgents;
56 m_state = inspectorState; 60 m_state = inspectorState;
57 init(); 61 init();
58 } 62 }
59 63
60 InspectorAgentRegistry::InspectorAgentRegistry(InstrumentingAgents* instrumentin gAgents, InspectorCompositeState* inspectorState) 64 InspectorAgentRegistry::InspectorAgentRegistry(InstrumentingAgents* instrumentin gAgents, InspectorCompositeState* inspectorState)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 105
102 void InspectorAgentRegistry::flushPendingFrontendMessages() 106 void InspectorAgentRegistry::flushPendingFrontendMessages()
103 { 107 {
104 for (size_t i = 0; i < m_agents.size(); i++) 108 for (size_t i = 0; i < m_agents.size(); i++)
105 m_agents[i]->flushPendingFrontendMessages(); 109 m_agents[i]->flushPendingFrontendMessages();
106 } 110 }
107 111
108 void InspectorAgentRegistry::trace(Visitor* visitor) 112 void InspectorAgentRegistry::trace(Visitor* visitor)
109 { 113 {
110 visitor->trace(m_instrumentingAgents); 114 visitor->trace(m_instrumentingAgents);
115 visitor->trace(m_inspectorState);
111 #if ENABLE(OILPAN) 116 #if ENABLE(OILPAN)
112 visitor->trace(m_agents); 117 visitor->trace(m_agents);
113 #endif 118 #endif
114 } 119 }
115 120
116 void InspectorAgentRegistry::didCommitLoadForMainFrame() 121 void InspectorAgentRegistry::didCommitLoadForMainFrame()
117 { 122 {
118 for (size_t i = 0; i < m_agents.size(); i++) 123 for (size_t i = 0; i < m_agents.size(); i++)
119 m_agents[i]->didCommitLoadForMainFrame(); 124 m_agents[i]->didCommitLoadForMainFrame();
120 } 125 }
121 126
122 } // namespace blink 127 } // namespace blink
123 128
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorBaseAgent.h ('k') | Source/core/inspector/InspectorCSSAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698