Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: Source/core/inspector/WorkerThreadDebugger.cpp

Issue 1214863013: [DevTools] Remove ScriptDebugListener from V8Debugger. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/V8Debugger.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/inspector/V8Debugger.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698