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

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

Issue 300393002: Merge DevTools Refactor CL to Blink36 (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: PTAL Created 6 years, 6 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/inspector/WorkerDebuggerAgent.h ('k') | Source/core/inspector/WorkerRuntimeAgent.h » ('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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/inspector/WorkerDebuggerAgent.h ('k') | Source/core/inspector/WorkerRuntimeAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698