| 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 24 matching lines...) Expand all Loading... |
| 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/InspectedFrames.h" | 39 #include "core/inspector/InspectedFrames.h" |
| 40 #include "core/inspector/InstrumentingAgents.h" | 40 #include "core/inspector/InstrumentingAgents.h" |
| 41 #include "core/page/Page.h" | 41 #include "core/page/Page.h" |
| 42 #include "platform/v8_inspector/public/V8RuntimeAgent.h" | 42 #include "platform/v8_inspector/public/V8RuntimeAgent.h" |
| 43 #include "platform/weborigin/SecurityOrigin.h" | 43 #include "platform/weborigin/SecurityOrigin.h" |
| 44 | 44 |
| 45 using blink::protocol::TypeBuilder::Runtime::ExceptionDetails; | 45 using blink::protocol::Runtime::ExceptionDetails; |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 PageRuntimeAgent::PageRuntimeAgent(Client* client, V8Debugger* debugger, Inspect
edFrames* inspectedFrames) | 49 PageRuntimeAgent::PageRuntimeAgent(Client* client, V8Debugger* debugger, Inspect
edFrames* inspectedFrames) |
| 50 : InspectorRuntimeAgent(debugger, client) | 50 : InspectorRuntimeAgent(debugger, client) |
| 51 , m_inspectedFrames(inspectedFrames) | 51 , m_inspectedFrames(inspectedFrames) |
| 52 , m_mainWorldContextCreated(false) | 52 , m_mainWorldContextCreated(false) |
| 53 { | 53 { |
| 54 } | 54 } |
| 55 | 55 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 void PageRuntimeAgent::reportExecutionContext(ScriptState* scriptState, bool isP
ageContext, const String& origin, const String& frameId) | 167 void PageRuntimeAgent::reportExecutionContext(ScriptState* scriptState, bool isP
ageContext, const String& origin, const String& frameId) |
| 168 { | 168 { |
| 169 DOMWrapperWorld& world = scriptState->world(); | 169 DOMWrapperWorld& world = scriptState->world(); |
| 170 String humanReadableName = world.isIsolatedWorld() ? world.isolatedWorldHuma
nReadableName() : ""; | 170 String humanReadableName = world.isIsolatedWorld() ? world.isolatedWorldHuma
nReadableName() : ""; |
| 171 String type = isPageContext ? "" : "Extension"; | 171 String type = isPageContext ? "" : "Extension"; |
| 172 InspectorRuntimeAgent::reportExecutionContextCreated(scriptState, type, orig
in, humanReadableName, frameId); | 172 InspectorRuntimeAgent::reportExecutionContextCreated(scriptState, type, orig
in, humanReadableName, frameId); |
| 173 } | 173 } |
| 174 | 174 |
| 175 } // namespace blink | 175 } // namespace blink |
| OLD | NEW |