| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 int WorkerThreadDebugger::contextGroupId(ExecutionContext* context) | 79 int WorkerThreadDebugger::contextGroupId(ExecutionContext* context) |
| 80 { | 80 { |
| 81 if (!context) | 81 if (!context) |
| 82 return 0; | 82 return 0; |
| 83 DCHECK(context == m_workerThread->globalScope()); | 83 DCHECK(context == m_workerThread->globalScope()); |
| 84 return workerContextGroupId; | 84 return workerContextGroupId; |
| 85 } | 85 } |
| 86 | 86 |
| 87 void WorkerThreadDebugger::contextCreated(v8::Local<v8::Context> context) | 87 void WorkerThreadDebugger::contextCreated(v8::Local<v8::Context> context) |
| 88 { | 88 { |
| 89 v8Inspector()->contextCreated(V8ContextInfo(context, workerContextGroupId, t
rue, m_workerThread->globalScope()->url().getString(), "", "", false)); | 89 V8ContextInfo contextInfo(context, workerContextGroupId, ""); |
| 90 contextInfo.origin = m_workerThread->globalScope()->url().getString(); |
| 91 v8Inspector()->contextCreated(contextInfo); |
| 90 } | 92 } |
| 91 | 93 |
| 92 void WorkerThreadDebugger::contextWillBeDestroyed(v8::Local<v8::Context> context
) | 94 void WorkerThreadDebugger::contextWillBeDestroyed(v8::Local<v8::Context> context
) |
| 93 { | 95 { |
| 94 v8Inspector()->contextDestroyed(context); | 96 v8Inspector()->contextDestroyed(context); |
| 95 } | 97 } |
| 96 | 98 |
| 97 void WorkerThreadDebugger::exceptionThrown(ErrorEvent* event) | 99 void WorkerThreadDebugger::exceptionThrown(ErrorEvent* event) |
| 98 { | 100 { |
| 99 m_workerThread->workerReportingProxy().reportConsoleMessage(JSMessageSource,
ErrorMessageLevel, event->messageForConsole(), event->location()); | 101 m_workerThread->workerReportingProxy().reportConsoleMessage(JSMessageSource,
ErrorMessageLevel, event->messageForConsole(), event->location()); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 m_workerThread->workerReportingProxy().reportConsoleMessage(ConsoleAPIMessag
eSource, consoleAPITypeToMessageLevel(type), message, location.get()); | 174 m_workerThread->workerReportingProxy().reportConsoleMessage(ConsoleAPIMessag
eSource, consoleAPITypeToMessageLevel(type), message, location.get()); |
| 173 } | 175 } |
| 174 | 176 |
| 175 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>) |
| 176 { | 178 { |
| 177 ASSERT_NOT_REACHED(); | 179 ASSERT_NOT_REACHED(); |
| 178 return v8::MaybeLocal<v8::Value>(); | 180 return v8::MaybeLocal<v8::Value>(); |
| 179 } | 181 } |
| 180 | 182 |
| 181 } // namespace blink | 183 } // namespace blink |
| OLD | NEW |