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

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

Issue 423303004: Change WokerThread to use a blink::WebThread (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove changes made to WebThread. Created 6 years, 4 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/core.gypi ('k') | Source/core/inspector/WorkerRuntimeAgent.cpp » ('j') | 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 class RunInspectorCommandsTask FINAL : public ScriptDebugServer::Task { 44 class RunInspectorCommandsTask FINAL : public ScriptDebugServer::Task {
45 public: 45 public:
46 explicit RunInspectorCommandsTask(WorkerThread* thread) 46 explicit RunInspectorCommandsTask(WorkerThread* thread)
47 : m_thread(thread) { } 47 : m_thread(thread) { }
48 virtual ~RunInspectorCommandsTask() { } 48 virtual ~RunInspectorCommandsTask() { }
49 virtual void run() OVERRIDE 49 virtual void run() OVERRIDE
50 { 50 {
51 // Process all queued debugger commands. WorkerThread is certainly 51 // Process all queued debugger commands. WorkerThread is certainly
52 // alive if this task is being executed. 52 // alive if this task is being executed.
53 while (MessageQueueMessageReceived == m_thread->runDebuggerTask(WorkerRu nLoop::DontWaitForMessage)) { } 53 m_thread->willEnterNestedLoop();
54 while (MessageQueueMessageReceived == m_thread->runDebuggerTask(WorkerTh read::DontWaitForMessage)) { }
55 m_thread->didLeaveNestedLoop();
54 } 56 }
55 57
56 private: 58 private:
57 WorkerThread* m_thread; 59 WorkerThread* m_thread;
58 }; 60 };
59 61
60 } // namespace 62 } // namespace
61 63
62 PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> WorkerDebuggerAgent::create(WorkerSc riptDebugServer* scriptDebugServer, WorkerGlobalScope* inspectedWorkerGlobalScop e, InjectedScriptManager* injectedScriptManager) 64 PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> WorkerDebuggerAgent::create(WorkerSc riptDebugServer* scriptDebugServer, WorkerGlobalScope* inspectedWorkerGlobalScop e, InjectedScriptManager* injectedScriptManager)
63 { 65 {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 { 116 {
115 // We don't need to mute console for workers. 117 // We don't need to mute console for workers.
116 } 118 }
117 119
118 void WorkerDebuggerAgent::unmuteConsole() 120 void WorkerDebuggerAgent::unmuteConsole()
119 { 121 {
120 // We don't need to mute console for workers. 122 // We don't need to mute console for workers.
121 } 123 }
122 124
123 } // namespace blink 125 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/inspector/WorkerRuntimeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698