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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #include "core/inspector/PageRuntimeAgent.h" | 31 #include "core/inspector/PageRuntimeAgent.h" |
32 | 32 |
33 #include "bindings/core/v8/DOMWrapperWorld.h" | 33 #include "bindings/core/v8/DOMWrapperWorld.h" |
34 #include "bindings/core/v8/ScriptController.h" | 34 #include "bindings/core/v8/ScriptController.h" |
35 #include "bindings/core/v8/ScriptState.h" | 35 #include "bindings/core/v8/ScriptState.h" |
36 #include "core/frame/FrameConsole.h" | 36 #include "core/frame/FrameConsole.h" |
37 #include "core/frame/LocalFrame.h" | 37 #include "core/frame/LocalFrame.h" |
38 #include "core/inspector/IdentifiersFactory.h" | 38 #include "core/inspector/IdentifiersFactory.h" |
39 #include "core/inspector/InjectedScript.h" | |
40 #include "core/inspector/InjectedScriptManager.h" | |
41 #include "core/inspector/InspectedFrames.h" | 39 #include "core/inspector/InspectedFrames.h" |
42 #include "core/inspector/InstrumentingAgents.h" | 40 #include "core/inspector/InstrumentingAgents.h" |
| 41 #include "core/inspector/v8/InjectedScript.h" |
| 42 #include "core/inspector/v8/InjectedScriptManager.h" |
43 #include "core/page/Page.h" | 43 #include "core/page/Page.h" |
44 #include "platform/weborigin/SecurityOrigin.h" | 44 #include "platform/weborigin/SecurityOrigin.h" |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 PageRuntimeAgent::PageRuntimeAgent(InjectedScriptManager* injectedScriptManager,
Client* client, V8Debugger* debugger, InspectedFrames* inspectedFrames) | 48 PageRuntimeAgent::PageRuntimeAgent(InjectedScriptManager* injectedScriptManager,
Client* client, V8Debugger* debugger, InspectedFrames* inspectedFrames) |
49 : InspectorRuntimeAgent(injectedScriptManager, debugger, client) | 49 : InspectorRuntimeAgent(injectedScriptManager, debugger, client) |
50 , m_inspectedFrames(inspectedFrames) | 50 , m_inspectedFrames(inspectedFrames) |
51 , m_mainWorldContextCreated(false) | 51 , m_mainWorldContextCreated(false) |
52 { | 52 { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 void PageRuntimeAgent::reportExecutionContext(ScriptState* scriptState, bool isP
ageContext, const String& origin, const String& frameId) | 164 void PageRuntimeAgent::reportExecutionContext(ScriptState* scriptState, bool isP
ageContext, const String& origin, const String& frameId) |
165 { | 165 { |
166 DOMWrapperWorld& world = scriptState->world(); | 166 DOMWrapperWorld& world = scriptState->world(); |
167 String humanReadableName = world.isIsolatedWorld() ? world.isolatedWorldHuma
nReadableName() : ""; | 167 String humanReadableName = world.isIsolatedWorld() ? world.isolatedWorldHuma
nReadableName() : ""; |
168 String type = isPageContext ? "" : "Extension"; | 168 String type = isPageContext ? "" : "Extension"; |
169 InspectorRuntimeAgent::reportExecutionContextCreated(scriptState, type, orig
in, humanReadableName, frameId); | 169 InspectorRuntimeAgent::reportExecutionContextCreated(scriptState, type, orig
in, humanReadableName, frameId); |
170 } | 170 } |
171 | 171 |
172 } // namespace blink | 172 } // namespace blink |
OLD | NEW |