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 12 matching lines...) Expand all Loading... |
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/V8InspectorImpl.h" |
32 | 32 |
33 #include <v8-profiler.h> | |
34 #include "src/inspector/InspectedContext.h" | 33 #include "src/inspector/InspectedContext.h" |
35 #include "src/inspector/StringUtil.h" | 34 #include "src/inspector/StringUtil.h" |
36 #include "src/inspector/V8Compat.h" | |
37 #include "src/inspector/V8ConsoleAgentImpl.h" | 35 #include "src/inspector/V8ConsoleAgentImpl.h" |
38 #include "src/inspector/V8ConsoleMessage.h" | 36 #include "src/inspector/V8ConsoleMessage.h" |
39 #include "src/inspector/V8Debugger.h" | 37 #include "src/inspector/V8Debugger.h" |
40 #include "src/inspector/V8DebuggerAgentImpl.h" | 38 #include "src/inspector/V8DebuggerAgentImpl.h" |
41 #include "src/inspector/V8InspectorSessionImpl.h" | 39 #include "src/inspector/V8InspectorSessionImpl.h" |
42 #include "src/inspector/V8RuntimeAgentImpl.h" | 40 #include "src/inspector/V8RuntimeAgentImpl.h" |
43 #include "src/inspector/V8StackTraceImpl.h" | 41 #include "src/inspector/V8StackTraceImpl.h" |
44 #include "src/inspector/protocol/Protocol.h" | 42 #include "src/inspector/protocol/Protocol.h" |
45 #include "src/inspector/public/V8InspectorClient.h" | 43 |
| 44 #include "include/v8-profiler.h" |
46 | 45 |
47 namespace v8_inspector { | 46 namespace v8_inspector { |
48 | 47 |
49 std::unique_ptr<V8Inspector> V8Inspector::create(v8::Isolate* isolate, | 48 std::unique_ptr<V8Inspector> V8Inspector::create(v8::Isolate* isolate, |
50 V8InspectorClient* client) { | 49 V8InspectorClient* client) { |
51 return wrapUnique(new V8InspectorImpl(isolate, client)); | 50 return wrapUnique(new V8InspectorImpl(isolate, client)); |
52 } | 51 } |
53 | 52 |
54 V8InspectorImpl::V8InspectorImpl(v8::Isolate* isolate, | 53 V8InspectorImpl::V8InspectorImpl(v8::Isolate* isolate, |
55 V8InspectorClient* client) | 54 V8InspectorClient* client) |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 } | 352 } |
354 | 353 |
355 V8InspectorSessionImpl* V8InspectorImpl::sessionForContextGroup( | 354 V8InspectorSessionImpl* V8InspectorImpl::sessionForContextGroup( |
356 int contextGroupId) { | 355 int contextGroupId) { |
357 if (!contextGroupId) return nullptr; | 356 if (!contextGroupId) return nullptr; |
358 SessionMap::iterator iter = m_sessions.find(contextGroupId); | 357 SessionMap::iterator iter = m_sessions.find(contextGroupId); |
359 return iter == m_sessions.end() ? nullptr : iter->second; | 358 return iter == m_sessions.end() ? nullptr : iter->second; |
360 } | 359 } |
361 | 360 |
362 } // namespace v8_inspector | 361 } // namespace v8_inspector |
OLD | NEW |