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

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

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added agents() Created 6 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) 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 m_state = inspectorState; 51 m_state = inspectorState;
52 init(); 52 init();
53 } 53 }
54 54
55 InspectorAgentRegistry::InspectorAgentRegistry(InstrumentingAgents* instrumentin gAgents, InspectorCompositeState* inspectorState) 55 InspectorAgentRegistry::InspectorAgentRegistry(InstrumentingAgents* instrumentin gAgents, InspectorCompositeState* inspectorState)
56 : m_instrumentingAgents(instrumentingAgents) 56 : m_instrumentingAgents(instrumentingAgents)
57 , m_inspectorState(inspectorState) 57 , m_inspectorState(inspectorState)
58 { 58 {
59 } 59 }
60 60
61 void InspectorAgentRegistry::append(PassOwnPtr<InspectorAgent> agent) 61 void InspectorAgentRegistry::append(PassOwnPtrWillBeRawPtr<InspectorAgent> agent )
62 { 62 {
63 agent->appended(m_instrumentingAgents, m_inspectorState->createAgentState(ag ent->name())); 63 agent->appended(m_instrumentingAgents, m_inspectorState->createAgentState(ag ent->name()));
64 m_agents.append(agent); 64 m_agents.append(agent);
65 } 65 }
66 66
67 void InspectorAgentRegistry::setFrontend(InspectorFrontend* frontend) 67 void InspectorAgentRegistry::setFrontend(InspectorFrontend* frontend)
68 { 68 {
69 for (size_t i = 0; i < m_agents.size(); i++) 69 for (size_t i = 0; i < m_agents.size(); i++)
70 m_agents[i]->setFrontend(frontend); 70 m_agents[i]->setFrontend(frontend);
71 } 71 }
(...skipping 21 matching lines...) Expand all
93 for (size_t i = 0; i < m_agents.size(); i++) 93 for (size_t i = 0; i < m_agents.size(); i++)
94 m_agents[i]->discardAgent(); 94 m_agents[i]->discardAgent();
95 } 95 }
96 96
97 void InspectorAgentRegistry::flushPendingFrontendMessages() 97 void InspectorAgentRegistry::flushPendingFrontendMessages()
98 { 98 {
99 for (size_t i = 0; i < m_agents.size(); i++) 99 for (size_t i = 0; i < m_agents.size(); i++)
100 m_agents[i]->flushPendingFrontendMessages(); 100 m_agents[i]->flushPendingFrontendMessages();
101 } 101 }
102 102
103 void InspectorAgentRegistry::trace(Visitor* visitor)
104 {
105 #if ENABLE(OILPAN)
106 visitor->trace(m_agents);
107 #endif
108 }
109
103 } // namespace WebCore 110 } // namespace WebCore
104 111
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698