OLD | NEW |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 PageRuntimeAgent::PageRuntimeAgent(InjectedScriptManager* injectedScriptManager,
ScriptDebugServer* scriptDebugServer, Page* page, InspectorPageAgent* pageAgent
) | 48 PageRuntimeAgent::PageRuntimeAgent(InjectedScriptManager* injectedScriptManager,
ScriptDebugServer* scriptDebugServer, Page* page, InspectorPageAgent* pageAgent
) |
49 : InspectorRuntimeAgent(injectedScriptManager, scriptDebugServer) | 49 : InspectorRuntimeAgent(injectedScriptManager, scriptDebugServer) |
50 , m_inspectedPage(page) | 50 , m_inspectedPage(page) |
51 , m_pageAgent(pageAgent) | 51 , m_pageAgent(pageAgent) |
52 , m_mainWorldContextCreated(false) | 52 , m_mainWorldContextCreated(false) |
53 { | 53 { |
54 } | 54 } |
55 | 55 |
56 PageRuntimeAgent::~PageRuntimeAgent() | 56 PageRuntimeAgent::~PageRuntimeAgent() |
57 { | 57 { |
| 58 #if !ENABLE(OILPAN) |
58 m_instrumentingAgents->setPageRuntimeAgent(0); | 59 m_instrumentingAgents->setPageRuntimeAgent(0); |
| 60 #endif |
| 61 } |
| 62 |
| 63 void PageRuntimeAgent::trace(Visitor* visitor) |
| 64 { |
| 65 visitor->trace(m_pageAgent); |
| 66 InspectorRuntimeAgent::trace(visitor); |
59 } | 67 } |
60 | 68 |
61 void PageRuntimeAgent::init() | 69 void PageRuntimeAgent::init() |
62 { | 70 { |
63 m_instrumentingAgents->setPageRuntimeAgent(this); | 71 m_instrumentingAgents->setPageRuntimeAgent(this); |
64 } | 72 } |
65 | 73 |
66 void PageRuntimeAgent::enable(ErrorString* errorString) | 74 void PageRuntimeAgent::enable(ErrorString* errorString) |
67 { | 75 { |
68 if (m_enabled) | 76 if (m_enabled) |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 if (scriptState->contextIsEmpty() || window == scriptState->domWindow())
{ | 165 if (scriptState->contextIsEmpty() || window == scriptState->domWindow())
{ |
158 scriptStatesToRemove.append(scriptState); | 166 scriptStatesToRemove.append(scriptState); |
159 m_frontend->executionContextDestroyed(it->value); | 167 m_frontend->executionContextDestroyed(it->value); |
160 } | 168 } |
161 } | 169 } |
162 m_scriptStateToId.removeAll(scriptStatesToRemove); | 170 m_scriptStateToId.removeAll(scriptStatesToRemove); |
163 } | 171 } |
164 | 172 |
165 } // namespace WebCore | 173 } // namespace WebCore |
166 | 174 |
OLD | NEW |