| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010-2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2010-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 10 matching lines...) Expand all Loading... |
| 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "src/inspector/V8InspectorImpl.h" | 31 #include "src/inspector/v8-inspector-impl.h" |
| 32 | 32 |
| 33 #include "src/inspector/InspectedContext.h" | 33 #include "src/inspector/inspected-context.h" |
| 34 #include "src/inspector/StringUtil.h" | 34 #include "src/inspector/string-util.h" |
| 35 #include "src/inspector/V8ConsoleAgentImpl.h" | 35 #include "src/inspector/v8-console-agent-impl.h" |
| 36 #include "src/inspector/V8ConsoleMessage.h" | 36 #include "src/inspector/v8-console-message.h" |
| 37 #include "src/inspector/V8Debugger.h" | 37 #include "src/inspector/v8-debugger-agent-impl.h" |
| 38 #include "src/inspector/V8DebuggerAgentImpl.h" | 38 #include "src/inspector/v8-debugger.h" |
| 39 #include "src/inspector/V8InspectorSessionImpl.h" | 39 #include "src/inspector/v8-inspector-session-impl.h" |
| 40 #include "src/inspector/V8ProfilerAgentImpl.h" | 40 #include "src/inspector/v8-profiler-agent-impl.h" |
| 41 #include "src/inspector/V8RuntimeAgentImpl.h" | 41 #include "src/inspector/v8-runtime-agent-impl.h" |
| 42 #include "src/inspector/V8StackTraceImpl.h" | 42 #include "src/inspector/v8-stack-trace-impl.h" |
| 43 #include "src/inspector/protocol/Protocol.h" | |
| 44 | 43 |
| 45 namespace v8_inspector { | 44 namespace v8_inspector { |
| 46 | 45 |
| 47 std::unique_ptr<V8Inspector> V8Inspector::create(v8::Isolate* isolate, | 46 std::unique_ptr<V8Inspector> V8Inspector::create(v8::Isolate* isolate, |
| 48 V8InspectorClient* client) { | 47 V8InspectorClient* client) { |
| 49 return wrapUnique(new V8InspectorImpl(isolate, client)); | 48 return wrapUnique(new V8InspectorImpl(isolate, client)); |
| 50 } | 49 } |
| 51 | 50 |
| 52 V8InspectorImpl::V8InspectorImpl(v8::Isolate* isolate, | 51 V8InspectorImpl::V8InspectorImpl(v8::Isolate* isolate, |
| 53 V8InspectorClient* client) | 52 V8InspectorClient* client) |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 } | 367 } |
| 369 | 368 |
| 370 V8InspectorSessionImpl* V8InspectorImpl::sessionForContextGroup( | 369 V8InspectorSessionImpl* V8InspectorImpl::sessionForContextGroup( |
| 371 int contextGroupId) { | 370 int contextGroupId) { |
| 372 if (!contextGroupId) return nullptr; | 371 if (!contextGroupId) return nullptr; |
| 373 SessionMap::iterator iter = m_sessions.find(contextGroupId); | 372 SessionMap::iterator iter = m_sessions.find(contextGroupId); |
| 374 return iter == m_sessions.end() ? nullptr : iter->second; | 373 return iter == m_sessions.end() ? nullptr : iter->second; |
| 375 } | 374 } |
| 376 | 375 |
| 377 } // namespace v8_inspector | 376 } // namespace v8_inspector |
| OLD | NEW |