| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 { | 82 { |
| 83 visitor->trace(m_inspectedWorkerGlobalScope); | 83 visitor->trace(m_inspectedWorkerGlobalScope); |
| 84 InspectorDebuggerAgent::trace(visitor); | 84 InspectorDebuggerAgent::trace(visitor); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void WorkerDebuggerAgent::interruptAndDispatchInspectorCommands() | 87 void WorkerDebuggerAgent::interruptAndDispatchInspectorCommands() |
| 88 { | 88 { |
| 89 scriptDebugServer().interruptAndRun(adoptPtr(new RunInspectorCommandsTask(m_
inspectedWorkerGlobalScope->thread()))); | 89 scriptDebugServer().interruptAndRun(adoptPtr(new RunInspectorCommandsTask(m_
inspectedWorkerGlobalScope->thread()))); |
| 90 } | 90 } |
| 91 | 91 |
| 92 void WorkerDebuggerAgent::startListeningScriptDebugServer() | 92 bool WorkerDebuggerAgent::startListeningScriptDebugServer() |
| 93 { | 93 { |
| 94 scriptDebugServer().addListener(this); | 94 scriptDebugServer().addListener(this); |
| 95 return true; |
| 95 } | 96 } |
| 96 | 97 |
| 97 void WorkerDebuggerAgent::stopListeningScriptDebugServer() | 98 void WorkerDebuggerAgent::stopListeningScriptDebugServer() |
| 98 { | 99 { |
| 99 scriptDebugServer().removeListener(this); | 100 scriptDebugServer().removeListener(this); |
| 100 } | 101 } |
| 101 | 102 |
| 102 WorkerScriptDebugServer& WorkerDebuggerAgent::scriptDebugServer() | 103 WorkerScriptDebugServer& WorkerDebuggerAgent::scriptDebugServer() |
| 103 { | 104 { |
| 104 return *m_scriptDebugServer; | 105 return *m_scriptDebugServer; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 119 { | 120 { |
| 120 // We don't need to mute console for workers. | 121 // We don't need to mute console for workers. |
| 121 } | 122 } |
| 122 | 123 |
| 123 void WorkerDebuggerAgent::unmuteConsole() | 124 void WorkerDebuggerAgent::unmuteConsole() |
| 124 { | 125 { |
| 125 // We don't need to mute console for workers. | 126 // We don't need to mute console for workers. |
| 126 } | 127 } |
| 127 | 128 |
| 128 } // namespace blink | 129 } // namespace blink |
| OLD | NEW |