| 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 25 matching lines...) Expand all Loading... |
| 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/page/Page.h" | 39 #include "core/page/Page.h" |
| 40 #include "platform/weborigin/SecurityOrigin.h" | 40 #include "platform/weborigin/SecurityOrigin.h" |
| 41 | 41 |
| 42 using blink::protocol::Runtime::ExceptionDetails; | 42 using blink::protocol::Runtime::ExceptionDetails; |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 PageRuntimeAgent::PageRuntimeAgent(Client* client, V8RuntimeAgent* agent, Inspec
tedFrames* inspectedFrames) | 46 PageRuntimeAgent::PageRuntimeAgent(V8RuntimeAgent* agent, InspectedFrames* inspe
ctedFrames) |
| 47 : InspectorRuntimeAgent(agent, client) | 47 : InspectorRuntimeAgent(agent) |
| 48 , m_inspectedFrames(inspectedFrames) | 48 , m_inspectedFrames(inspectedFrames) |
| 49 { | 49 { |
| 50 } | 50 } |
| 51 | 51 |
| 52 PageRuntimeAgent::~PageRuntimeAgent() | 52 PageRuntimeAgent::~PageRuntimeAgent() |
| 53 { | 53 { |
| 54 } | 54 } |
| 55 | 55 |
| 56 DEFINE_TRACE(PageRuntimeAgent) | 56 DEFINE_TRACE(PageRuntimeAgent) |
| 57 { | 57 { |
| 58 visitor->trace(m_inspectedFrames); | 58 visitor->trace(m_inspectedFrames); |
| 59 InspectorRuntimeAgent::trace(visitor); | 59 InspectorRuntimeAgent::trace(visitor); |
| 60 } | 60 } |
| 61 | 61 |
| 62 void PageRuntimeAgent::enable(ErrorString* errorString) | 62 void PageRuntimeAgent::enable(ErrorString* errorString) |
| 63 { | 63 { |
| 64 if (m_enabled) | 64 if (m_enabled) |
| 65 return; | 65 return; |
| 66 InspectorRuntimeAgent::enable(errorString); | 66 InspectorRuntimeAgent::enable(errorString); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void PageRuntimeAgent::disable(ErrorString* errorString) | 69 void PageRuntimeAgent::disable(ErrorString* errorString) |
| 70 { | 70 { |
| 71 if (!m_enabled) | 71 if (!m_enabled) |
| 72 return; | 72 return; |
| 73 InspectorRuntimeAgent::disable(errorString); | 73 InspectorRuntimeAgent::disable(errorString); |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace blink | 76 } // namespace blink |
| OLD | NEW |