| 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 26 matching lines...) Expand all Loading... |
| 37 #include "core/workers/WorkerGlobalScope.h" | 37 #include "core/workers/WorkerGlobalScope.h" |
| 38 #include "core/workers/WorkerThread.h" | 38 #include "core/workers/WorkerThread.h" |
| 39 #include "wtf/MessageQueue.h" | 39 #include "wtf/MessageQueue.h" |
| 40 #include <v8.h> | 40 #include <v8.h> |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 static const char* workerContextDebugId = "[worker]"; | 44 static const char* workerContextDebugId = "[worker]"; |
| 45 | 45 |
| 46 WorkerThreadDebugger::WorkerThreadDebugger(WorkerGlobalScope* workerGlobalScope) | 46 WorkerThreadDebugger::WorkerThreadDebugger(WorkerGlobalScope* workerGlobalScope) |
| 47 : ScriptDebuggerBase(v8::Isolate::GetCurrent(), V8Debugger::create(v8::Isola
te::GetCurrent(), this)) | 47 : ScriptDebuggerBase(v8::Isolate::GetCurrent()) |
| 48 , m_listener(nullptr) | 48 , m_listener(nullptr) |
| 49 , m_workerGlobalScope(workerGlobalScope) | 49 , m_workerGlobalScope(workerGlobalScope) |
| 50 { | 50 { |
| 51 } | 51 } |
| 52 | 52 |
| 53 WorkerThreadDebugger::~WorkerThreadDebugger() | 53 WorkerThreadDebugger::~WorkerThreadDebugger() |
| 54 { | 54 { |
| 55 } | 55 } |
| 56 | 56 |
| 57 DEFINE_TRACE(WorkerThreadDebugger) | 57 DEFINE_TRACE(WorkerThreadDebugger) |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 if (m_listener) | 104 if (m_listener) |
| 105 m_listener->didContinue(); | 105 m_listener->didContinue(); |
| 106 } | 106 } |
| 107 | 107 |
| 108 void WorkerThreadDebugger::quitMessageLoopOnPause() | 108 void WorkerThreadDebugger::quitMessageLoopOnPause() |
| 109 { | 109 { |
| 110 // Nothing to do here in case of workers since runMessageLoopOnPause will ch
eck for paused state after each debugger command. | 110 // Nothing to do here in case of workers since runMessageLoopOnPause will ch
eck for paused state after each debugger command. |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace blink | 113 } // namespace blink |
| OLD | NEW |