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

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

Issue 1132793002: DevTools: do not enable debugger for pages where script execution is prohibited (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698