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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 } | 165 } |
166 } | 166 } |
167 | 167 |
168 void PageRuntimeAgent::reportExecutionContext(ScriptState* scriptState, bool isP
ageContext, const String& origin, const String& frameId) | 168 void PageRuntimeAgent::reportExecutionContext(ScriptState* scriptState, bool isP
ageContext, const String& origin, const String& frameId) |
169 { | 169 { |
170 int executionContextId = injectedScriptManager()->injectedScriptIdFor(script
State); | 170 int executionContextId = injectedScriptManager()->injectedScriptIdFor(script
State); |
171 m_scriptStateToId.set(scriptState, executionContextId); | 171 m_scriptStateToId.set(scriptState, executionContextId); |
172 DOMWrapperWorld& world = scriptState->world(); | 172 DOMWrapperWorld& world = scriptState->world(); |
173 String humanReadableName = world.isIsolatedWorld() ? world.isolatedWorldHuma
nReadableName() : ""; | 173 String humanReadableName = world.isIsolatedWorld() ? world.isolatedWorldHuma
nReadableName() : ""; |
174 String type = isPageContext ? "" : "Extension"; | 174 String type = isPageContext ? "" : "Extension"; |
175 InspectorRuntimeAgent::addExecutionContextToFrontend(executionContextId, typ
e, origin, humanReadableName, frameId); | 175 InspectorRuntimeAgent::reportExecutionContextCreated(executionContextId, typ
e, origin, humanReadableName, frameId); |
176 } | 176 } |
177 | 177 |
178 } // namespace blink | 178 } // namespace blink |
OLD | NEW |