| 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/InspectedFrames.h" | 38 #include "core/inspector/InspectedFrames.h" |
| 39 #include "core/inspector/InstrumentingAgents.h" | |
| 40 #include "core/page/Page.h" | 39 #include "core/page/Page.h" |
| 41 #include "platform/weborigin/SecurityOrigin.h" | 40 #include "platform/weborigin/SecurityOrigin.h" |
| 42 | 41 |
| 43 using blink::protocol::Runtime::ExceptionDetails; | 42 using blink::protocol::Runtime::ExceptionDetails; |
| 44 | 43 |
| 45 namespace blink { | 44 namespace blink { |
| 46 | 45 |
| 47 PageRuntimeAgent::PageRuntimeAgent(Client* client, V8RuntimeAgent* agent, Inspec
tedFrames* inspectedFrames) | 46 PageRuntimeAgent::PageRuntimeAgent(Client* client, V8RuntimeAgent* agent, Inspec
tedFrames* inspectedFrames) |
| 48 : InspectorRuntimeAgent(agent, client) | 47 : InspectorRuntimeAgent(agent, client) |
| 49 , m_inspectedFrames(inspectedFrames) | 48 , m_inspectedFrames(inspectedFrames) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 80 InspectorRuntimeAgent::disable(errorString); | 79 InspectorRuntimeAgent::disable(errorString); |
| 81 m_instrumentingAgents->setPageRuntimeAgent(nullptr); | 80 m_instrumentingAgents->setPageRuntimeAgent(nullptr); |
| 82 } | 81 } |
| 83 | 82 |
| 84 void PageRuntimeAgent::didClearDocumentOfWindowObject(LocalFrame* frame) | 83 void PageRuntimeAgent::didClearDocumentOfWindowObject(LocalFrame* frame) |
| 85 { | 84 { |
| 86 frame->script().initializeMainWorld(); | 85 frame->script().initializeMainWorld(); |
| 87 } | 86 } |
| 88 | 87 |
| 89 } // namespace blink | 88 } // namespace blink |
| OLD | NEW |