| 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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 } | 802 } |
| 803 | 803 |
| 804 V8ConsoleMessageStorage* V8DebuggerImpl::ensureConsoleMessageStorage(int context
GroupId) | 804 V8ConsoleMessageStorage* V8DebuggerImpl::ensureConsoleMessageStorage(int context
GroupId) |
| 805 { | 805 { |
| 806 ConsoleStorageMap::iterator storageIt = m_consoleStorageMap.find(contextGrou
pId); | 806 ConsoleStorageMap::iterator storageIt = m_consoleStorageMap.find(contextGrou
pId); |
| 807 if (storageIt == m_consoleStorageMap.end()) | 807 if (storageIt == m_consoleStorageMap.end()) |
| 808 storageIt = m_consoleStorageMap.insert(std::make_pair(contextGroupId, wr
apUnique(new V8ConsoleMessageStorage(this, contextGroupId)))).first; | 808 storageIt = m_consoleStorageMap.insert(std::make_pair(contextGroupId, wr
apUnique(new V8ConsoleMessageStorage(this, contextGroupId)))).first; |
| 809 return storageIt->second.get(); | 809 return storageIt->second.get(); |
| 810 } | 810 } |
| 811 | 811 |
| 812 bool V8DebuggerImpl::hasConsoleMessageStorage(int contextGroupId) |
| 813 { |
| 814 ConsoleStorageMap::iterator storageIt = m_consoleStorageMap.find(contextGrou
pId); |
| 815 return storageIt != m_consoleStorageMap.end(); |
| 816 } |
| 817 |
| 812 std::unique_ptr<V8StackTrace> V8DebuggerImpl::createStackTrace(v8::Local<v8::Sta
ckTrace> stackTrace) | 818 std::unique_ptr<V8StackTrace> V8DebuggerImpl::createStackTrace(v8::Local<v8::Sta
ckTrace> stackTrace) |
| 813 { | 819 { |
| 814 int contextGroupId = m_isolate->InContext() ? getGroupId(m_isolate->GetCurre
ntContext()) : 0; | 820 int contextGroupId = m_isolate->InContext() ? getGroupId(m_isolate->GetCurre
ntContext()) : 0; |
| 815 return V8StackTraceImpl::create(this, contextGroupId, stackTrace, V8StackTra
ceImpl::maxCallStackSizeToCapture); | 821 return V8StackTraceImpl::create(this, contextGroupId, stackTrace, V8StackTra
ceImpl::maxCallStackSizeToCapture); |
| 816 } | 822 } |
| 817 | 823 |
| 818 std::unique_ptr<V8InspectorSession> V8DebuggerImpl::connect(int contextGroupId,
protocol::FrontendChannel* channel, V8InspectorSessionClient* client, const Stri
ng16* state) | 824 std::unique_ptr<V8InspectorSession> V8DebuggerImpl::connect(int contextGroupId,
protocol::FrontendChannel* channel, V8InspectorSessionClient* client, const Stri
ng16* state) |
| 819 { | 825 { |
| 820 DCHECK(m_sessions.find(contextGroupId) == m_sessions.cend()); | 826 DCHECK(m_sessions.find(contextGroupId) == m_sessions.cend()); |
| 821 std::unique_ptr<V8InspectorSessionImpl> session = | 827 std::unique_ptr<V8InspectorSessionImpl> session = |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 | 1138 |
| 1133 V8InspectorSessionImpl* V8DebuggerImpl::sessionForContextGroup(int contextGroupI
d) | 1139 V8InspectorSessionImpl* V8DebuggerImpl::sessionForContextGroup(int contextGroupI
d) |
| 1134 { | 1140 { |
| 1135 if (!contextGroupId) | 1141 if (!contextGroupId) |
| 1136 return nullptr; | 1142 return nullptr; |
| 1137 SessionMap::iterator iter = m_sessions.find(contextGroupId); | 1143 SessionMap::iterator iter = m_sessions.find(contextGroupId); |
| 1138 return iter == m_sessions.end() ? nullptr : iter->second; | 1144 return iter == m_sessions.end() ? nullptr : iter->second; |
| 1139 } | 1145 } |
| 1140 | 1146 |
| 1141 } // namespace blink | 1147 } // namespace blink |
| OLD | NEW |