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 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 void V8DebuggerImpl::idleStarted() | 1000 void V8DebuggerImpl::idleStarted() |
1001 { | 1001 { |
1002 m_isolate->GetCpuProfiler()->SetIdle(true); | 1002 m_isolate->GetCpuProfiler()->SetIdle(true); |
1003 } | 1003 } |
1004 | 1004 |
1005 void V8DebuggerImpl::idleFinished() | 1005 void V8DebuggerImpl::idleFinished() |
1006 { | 1006 { |
1007 m_isolate->GetCpuProfiler()->SetIdle(false); | 1007 m_isolate->GetCpuProfiler()->SetIdle(false); |
1008 } | 1008 } |
1009 | 1009 |
1010 bool V8DebuggerImpl::addConsoleMessage(int contextGroupId, MessageSource source,
MessageLevel level, const String16& message, const String16& url, unsigned line
Number, unsigned columnNumber, std::unique_ptr<V8StackTrace> stackTrace, int scr
iptId, const String16& requestIdentifier) | 1010 bool V8DebuggerImpl::addConsoleMessage(int contextGroupId, MessageSource source,
MessageLevel level, const String16& message, const String16& url, unsigned line
Number, unsigned columnNumber, std::unique_ptr<V8StackTrace> stackTrace, int scr
iptId, const String16& requestIdentifier, const String16& workerId) |
1011 { | 1011 { |
1012 if (m_muteConsoleCount) | 1012 if (m_muteConsoleCount) |
1013 return false; | 1013 return false; |
1014 ensureConsoleMessageStorage(contextGroupId)->addMessage(wrapUnique(new V8Con
soleMessage(m_client->currentTimeMS(), source, level, message, url, lineNumber,
columnNumber, std::move(stackTrace), scriptId, requestIdentifier))); | 1014 ensureConsoleMessageStorage(contextGroupId)->addMessage(V8ConsoleMessage::cr
eateExternal(m_client->currentTimeMS(), source, level, message, url, lineNumber,
columnNumber, std::move(stackTrace), scriptId, requestIdentifier, workerId)); |
1015 return true; | 1015 return true; |
1016 } | 1016 } |
1017 | 1017 |
1018 void V8DebuggerImpl::logToConsole(v8::Local<v8::Context> context, const String16
& message, v8::Local<v8::Value> arg1, v8::Local<v8::Value> arg2) | 1018 void V8DebuggerImpl::logToConsole(v8::Local<v8::Context> context, const String16
& message, v8::Local<v8::Value> arg1, v8::Local<v8::Value> arg2) |
1019 { | 1019 { |
1020 int contextGroupId = getGroupId(context); | 1020 int contextGroupId = getGroupId(context); |
1021 InspectedContext* inspectedContext = getContext(contextGroupId, contextId(co
ntext)); | 1021 InspectedContext* inspectedContext = getContext(contextGroupId, contextId(co
ntext)); |
1022 if (!inspectedContext) | 1022 if (!inspectedContext) |
1023 return; | 1023 return; |
1024 std::vector<v8::Local<v8::Value>> arguments; | 1024 std::vector<v8::Local<v8::Value>> arguments; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 | 1129 |
1130 V8InspectorSessionImpl* V8DebuggerImpl::sessionForContextGroup(int contextGroupI
d) | 1130 V8InspectorSessionImpl* V8DebuggerImpl::sessionForContextGroup(int contextGroupI
d) |
1131 { | 1131 { |
1132 if (!contextGroupId) | 1132 if (!contextGroupId) |
1133 return nullptr; | 1133 return nullptr; |
1134 SessionMap::iterator iter = m_sessions.find(contextGroupId); | 1134 SessionMap::iterator iter = m_sessions.find(contextGroupId); |
1135 return iter == m_sessions.end() ? nullptr : iter->second; | 1135 return iter == m_sessions.end() ? nullptr : iter->second; |
1136 } | 1136 } |
1137 | 1137 |
1138 } // namespace blink | 1138 } // namespace blink |
OLD | NEW |