| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 { | 152 { |
| 153 DCHECK(contextGroupId == workerContextGroupId); | 153 DCHECK(contextGroupId == workerContextGroupId); |
| 154 } | 154 } |
| 155 | 155 |
| 156 bool WorkerThreadDebugger::canExecuteScripts(int contextGroupId) | 156 bool WorkerThreadDebugger::canExecuteScripts(int contextGroupId) |
| 157 { | 157 { |
| 158 DCHECK(contextGroupId == workerContextGroupId); | 158 DCHECK(contextGroupId == workerContextGroupId); |
| 159 return true; | 159 return true; |
| 160 } | 160 } |
| 161 | 161 |
| 162 void WorkerThreadDebugger::runIfWaitingForDebugger(int contextGroupId) | 162 void WorkerThreadDebugger::resumeStartup(int contextGroupId) |
| 163 { | 163 { |
| 164 DCHECK(contextGroupId == workerContextGroupId); | 164 DCHECK(contextGroupId == workerContextGroupId); |
| 165 m_workerThread->stopRunningDebuggerTasksOnPauseOnWorkerThread(); | 165 m_workerThread->stopRunningDebuggerTasksOnPauseOnWorkerThread(); |
| 166 } | 166 } |
| 167 | 167 |
| 168 void WorkerThreadDebugger::consoleAPIMessage(int contextGroupId, V8ConsoleAPITyp
e type, const String16& message, const String16& url, unsigned lineNumber, unsig
ned columnNumber, V8StackTrace* stackTrace) | 168 void WorkerThreadDebugger::consoleAPIMessage(int contextGroupId, V8ConsoleAPITyp
e type, const String16& message, const String16& url, unsigned lineNumber, unsig
ned columnNumber, V8StackTrace* stackTrace) |
| 169 { | 169 { |
| 170 DCHECK(contextGroupId == workerContextGroupId); | 170 DCHECK(contextGroupId == workerContextGroupId); |
| 171 if (type == V8ConsoleAPIType::kClear) | 171 if (type == V8ConsoleAPIType::kClear) |
| 172 m_workerThread->consoleMessageStorage()->clear(); | 172 m_workerThread->consoleMessageStorage()->clear(); |
| 173 std::unique_ptr<SourceLocation> location = SourceLocation::create(url, lineN
umber, columnNumber, stackTrace ? stackTrace->clone() : nullptr, 0); | 173 std::unique_ptr<SourceLocation> location = SourceLocation::create(url, lineN
umber, columnNumber, stackTrace ? stackTrace->clone() : nullptr, 0); |
| 174 m_workerThread->workerReportingProxy().reportConsoleMessage(ConsoleAPIMessag
eSource, consoleAPITypeToMessageLevel(type), message, location.get()); | 174 m_workerThread->workerReportingProxy().reportConsoleMessage(ConsoleAPIMessag
eSource, consoleAPITypeToMessageLevel(type), message, location.get()); |
| 175 } | 175 } |
| 176 | 176 |
| 177 v8::MaybeLocal<v8::Value> WorkerThreadDebugger::memoryInfo(v8::Isolate*, v8::Loc
al<v8::Context>) | 177 v8::MaybeLocal<v8::Value> WorkerThreadDebugger::memoryInfo(v8::Isolate*, v8::Loc
al<v8::Context>) |
| 178 { | 178 { |
| 179 ASSERT_NOT_REACHED(); | 179 ASSERT_NOT_REACHED(); |
| 180 return v8::MaybeLocal<v8::Value>(); | 180 return v8::MaybeLocal<v8::Value>(); |
| 181 } | 181 } |
| 182 | 182 |
| 183 } // namespace blink | 183 } // namespace blink |
| OLD | NEW |