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 |
| 57 } |
| 58 |
| 59 void WorkerRuntimeAgent::trace(Visitor* visitor) |
| 60 { |
| 61 visitor->trace(m_workerGlobalScope); |
| 62 InspectorRuntimeAgent::trace(visitor); |
55 } | 63 } |
56 | 64 |
57 void WorkerRuntimeAgent::init() | 65 void WorkerRuntimeAgent::init() |
58 { | 66 { |
59 m_instrumentingAgents->setWorkerRuntimeAgent(this); | 67 m_instrumentingAgents->setWorkerRuntimeAgent(this); |
60 } | 68 } |
61 | 69 |
62 void WorkerRuntimeAgent::enable(ErrorString* errorString) | 70 void WorkerRuntimeAgent::enable(ErrorString* errorString) |
63 { | 71 { |
64 if (m_enabled) | 72 if (m_enabled) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 114 |
107 m_paused = true; | 115 m_paused = true; |
108 MessageQueueWaitResult result; | 116 MessageQueueWaitResult result; |
109 do { | 117 do { |
110 result = context->thread()->runLoop().runDebuggerTask(); | 118 result = context->thread()->runLoop().runDebuggerTask(); |
111 // Keep waiting until execution is resumed. | 119 // Keep waiting until execution is resumed. |
112 } while (result == MessageQueueMessageReceived && m_paused); | 120 } while (result == MessageQueueMessageReceived && m_paused); |
113 } | 121 } |
114 | 122 |
115 } // namespace WebCore | 123 } // namespace WebCore |
OLD | NEW |