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_inspectedPage); |
| 66 visitor->trace(m_pageAgent); |
| 67 InspectorRuntimeAgent::trace(visitor); |
59 } | 68 } |
60 | 69 |
61 void PageRuntimeAgent::init() | 70 void PageRuntimeAgent::init() |
62 { | 71 { |
63 m_instrumentingAgents->setPageRuntimeAgent(this); | 72 m_instrumentingAgents->setPageRuntimeAgent(this); |
64 } | 73 } |
65 | 74 |
66 void PageRuntimeAgent::enable(ErrorString* errorString) | 75 void PageRuntimeAgent::enable(ErrorString* errorString) |
67 { | 76 { |
68 if (m_enabled) | 77 if (m_enabled) |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 if (scriptState->contextIsEmpty() || window == scriptState->domWindow())
{ | 166 if (scriptState->contextIsEmpty() || window == scriptState->domWindow())
{ |
158 scriptStatesToRemove.append(scriptState); | 167 scriptStatesToRemove.append(scriptState); |
159 m_frontend->executionContextDestroyed(it->value); | 168 m_frontend->executionContextDestroyed(it->value); |
160 } | 169 } |
161 } | 170 } |
162 m_scriptStateToId.removeAll(scriptStatesToRemove); | 171 m_scriptStateToId.removeAll(scriptStatesToRemove); |
163 } | 172 } |
164 | 173 |
165 } // namespace blink | 174 } // namespace blink |
166 | 175 |
OLD | NEW |