| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 void WorkerThreadDebugger::beginEnsureAllContextsInGroup(int contextGroupId) | 150 void WorkerThreadDebugger::beginEnsureAllContextsInGroup(int contextGroupId) |
| 151 { | 151 { |
| 152 DCHECK(contextGroupId == workerContextGroupId); | 152 DCHECK(contextGroupId == workerContextGroupId); |
| 153 } | 153 } |
| 154 | 154 |
| 155 void WorkerThreadDebugger::endEnsureAllContextsInGroup(int contextGroupId) | 155 void WorkerThreadDebugger::endEnsureAllContextsInGroup(int contextGroupId) |
| 156 { | 156 { |
| 157 DCHECK(contextGroupId == workerContextGroupId); | 157 DCHECK(contextGroupId == workerContextGroupId); |
| 158 } | 158 } |
| 159 | 159 |
| 160 bool WorkerThreadDebugger::canExecuteScripts(int contextGroupId) |
| 161 { |
| 162 DCHECK(contextGroupId == workerContextGroupId); |
| 163 return true; |
| 164 } |
| 165 |
| 160 void WorkerThreadDebugger::consoleAPIMessage(int contextGroupId, V8ConsoleAPITyp
e type, const String16& message, const String16& url, unsigned lineNumber, unsig
ned columnNumber, V8StackTrace* stackTrace) | 166 void WorkerThreadDebugger::consoleAPIMessage(int contextGroupId, V8ConsoleAPITyp
e type, const String16& message, const String16& url, unsigned lineNumber, unsig
ned columnNumber, V8StackTrace* stackTrace) |
| 161 { | 167 { |
| 162 DCHECK(contextGroupId == workerContextGroupId); | 168 DCHECK(contextGroupId == workerContextGroupId); |
| 163 if (type == V8ConsoleAPIType::kClear) | 169 if (type == V8ConsoleAPIType::kClear) |
| 164 m_workerThread->consoleMessageStorage()->clear(); | 170 m_workerThread->consoleMessageStorage()->clear(); |
| 165 // TODO(dgozman): do not wrap in ConsoleMessage. | 171 // TODO(dgozman): do not wrap in ConsoleMessage. |
| 166 ConsoleMessage* consoleMessage = ConsoleMessage::create(ConsoleAPIMessageSou
rce, consoleAPITypeToMessageLevel(type), message, SourceLocation::create(url, li
neNumber, columnNumber, stackTrace ? stackTrace->clone() : nullptr, 0)); | 172 ConsoleMessage* consoleMessage = ConsoleMessage::create(ConsoleAPIMessageSou
rce, consoleAPITypeToMessageLevel(type), message, SourceLocation::create(url, li
neNumber, columnNumber, stackTrace ? stackTrace->clone() : nullptr, 0)); |
| 167 m_workerThread->workerReportingProxy().reportConsoleMessage(consoleMessage); | 173 m_workerThread->workerReportingProxy().reportConsoleMessage(consoleMessage); |
| 168 } | 174 } |
| 169 | 175 |
| 170 v8::MaybeLocal<v8::Value> WorkerThreadDebugger::memoryInfo(v8::Isolate*, v8::Loc
al<v8::Context>) | 176 v8::MaybeLocal<v8::Value> WorkerThreadDebugger::memoryInfo(v8::Isolate*, v8::Loc
al<v8::Context>) |
| 171 { | 177 { |
| 172 ASSERT_NOT_REACHED(); | 178 ASSERT_NOT_REACHED(); |
| 173 return v8::MaybeLocal<v8::Value>(); | 179 return v8::MaybeLocal<v8::Value>(); |
| 174 } | 180 } |
| 175 | 181 |
| 176 } // namespace blink | 182 } // namespace blink |
| OLD | NEW |