| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 WorkerRuntimeAgent::WorkerRuntimeAgent(InjectedScriptManager* injectedScriptMana
ger, ScriptDebugServer* scriptDebugServer, WorkerGlobalScope* workerGlobalScope) | 45 WorkerRuntimeAgent::WorkerRuntimeAgent(InjectedScriptManager* injectedScriptMana
ger, ScriptDebugServer* scriptDebugServer, WorkerGlobalScope* workerGlobalScope) |
| 46 : InspectorRuntimeAgent(injectedScriptManager, scriptDebugServer) | 46 : InspectorRuntimeAgent(injectedScriptManager, scriptDebugServer) |
| 47 , m_workerGlobalScope(workerGlobalScope) | 47 , m_workerGlobalScope(workerGlobalScope) |
| 48 , m_paused(false) | 48 , m_paused(false) |
| 49 { | 49 { |
| 50 } | 50 } |
| 51 | 51 |
| 52 WorkerRuntimeAgent::~WorkerRuntimeAgent() | 52 WorkerRuntimeAgent::~WorkerRuntimeAgent() |
| 53 { | 53 { |
| 54 #if !ENABLE(OILPAN) |
| 54 m_instrumentingAgents->setWorkerRuntimeAgent(0); | 55 m_instrumentingAgents->setWorkerRuntimeAgent(0); |
| 56 #endif |
| 55 } | 57 } |
| 56 | 58 |
| 57 void WorkerRuntimeAgent::init() | 59 void WorkerRuntimeAgent::init() |
| 58 { | 60 { |
| 59 m_instrumentingAgents->setWorkerRuntimeAgent(this); | 61 m_instrumentingAgents->setWorkerRuntimeAgent(this); |
| 60 } | 62 } |
| 61 | 63 |
| 62 void WorkerRuntimeAgent::enable(ErrorString* errorString) | 64 void WorkerRuntimeAgent::enable(ErrorString* errorString) |
| 63 { | 65 { |
| 64 if (m_enabled) | 66 if (m_enabled) |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 108 |
| 107 m_paused = true; | 109 m_paused = true; |
| 108 MessageQueueWaitResult result; | 110 MessageQueueWaitResult result; |
| 109 do { | 111 do { |
| 110 result = context->thread()->runLoop().runDebuggerTask(); | 112 result = context->thread()->runLoop().runDebuggerTask(); |
| 111 // Keep waiting until execution is resumed. | 113 // Keep waiting until execution is resumed. |
| 112 } while (result == MessageQueueMessageReceived && m_paused); | 114 } while (result == MessageQueueMessageReceived && m_paused); |
| 113 } | 115 } |
| 114 | 116 |
| 115 } // namespace WebCore | 117 } // namespace WebCore |
| OLD | NEW |