| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 void WorkerDebuggerAgent::stopListeningScriptDebugServer() | 110 void WorkerDebuggerAgent::stopListeningScriptDebugServer() |
| 111 { | 111 { |
| 112 scriptDebugServer().removeListener(this); | 112 scriptDebugServer().removeListener(this); |
| 113 } | 113 } |
| 114 | 114 |
| 115 WorkerScriptDebugServer& WorkerDebuggerAgent::scriptDebugServer() | 115 WorkerScriptDebugServer& WorkerDebuggerAgent::scriptDebugServer() |
| 116 { | 116 { |
| 117 return *m_scriptDebugServer; | 117 return *m_scriptDebugServer; |
| 118 } | 118 } |
| 119 | 119 |
| 120 InjectedScript WorkerDebuggerAgent::injectedScriptForEval(ErrorString* error, co
nst int* executionContextId) | 120 InjectedScript& WorkerDebuggerAgent::injectedScriptForEval(ErrorString* error, c
onst int* executionContextId) |
| 121 { | 121 { |
| 122 if (executionContextId) { | 122 if (executionContextId) { |
| 123 *error = "Execution context id is not supported for workers as there is
only one execution context."; | 123 *error = "Execution context id is not supported for workers as there is
only one execution context."; |
| 124 return InjectedScript(); | 124 return injectedScriptManager()->placeholderInjectedScript(); |
| 125 } | 125 } |
| 126 return injectedScriptManager()->injectedScriptFor(m_inspectedWorkerGlobalSco
pe->script()->scriptState()); | 126 return injectedScriptManager()->injectedScriptFor(m_inspectedWorkerGlobalSco
pe->script()->scriptState()); |
| 127 } | 127 } |
| 128 | 128 |
| 129 void WorkerDebuggerAgent::muteConsole() | 129 void WorkerDebuggerAgent::muteConsole() |
| 130 { | 130 { |
| 131 // We don't need to mute console for workers. | 131 // We don't need to mute console for workers. |
| 132 } | 132 } |
| 133 | 133 |
| 134 void WorkerDebuggerAgent::unmuteConsole() | 134 void WorkerDebuggerAgent::unmuteConsole() |
| 135 { | 135 { |
| 136 // We don't need to mute console for workers. | 136 // We don't need to mute console for workers. |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace WebCore | 139 } // namespace WebCore |
| OLD | NEW |