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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp

Issue 2139363003: [DevTools] Cleanup v8_inspector API part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 5 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
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 if (!m_instrumentingAgents || !m_instrumentingAgents->hasInspectorPageAgents ()) 167 if (!m_instrumentingAgents || !m_instrumentingAgents->hasInspectorPageAgents ())
168 return; 168 return;
169 for (InspectorPageAgent* pageAgent : m_instrumentingAgents->inspectorPageAge nts()) 169 for (InspectorPageAgent* pageAgent : m_instrumentingAgents->inspectorPageAge nts())
170 pageAgent->didRunJavaScriptDialog(m_result); 170 pageAgent->didRunJavaScriptDialog(m_result);
171 } 171 }
172 172
173 int FrontendCounter::s_frontendCounter = 0; 173 int FrontendCounter::s_frontendCounter = 0;
174 174
175 bool isDebuggerPaused(LocalFrame*) 175 bool isDebuggerPaused(LocalFrame*)
176 { 176 {
177 return MainThreadDebugger::instance()->debugger()->isPaused(); 177 return MainThreadDebugger::instance()->isPaused();
178 } 178 }
179 179
180 void didReceiveResourceResponseButCanceled(LocalFrame* frame, DocumentLoader* lo ader, unsigned long identifier, const ResourceResponse& r, Resource* resource) 180 void didReceiveResourceResponseButCanceled(LocalFrame* frame, DocumentLoader* lo ader, unsigned long identifier, const ResourceResponse& r, Resource* resource)
181 { 181 {
182 didReceiveResourceResponse(frame, identifier, loader, r, resource); 182 didReceiveResourceResponse(frame, identifier, loader, r, resource);
183 } 183 }
184 184
185 void continueAfterXFrameOptionsDenied(LocalFrame* frame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r, Resource* resource) 185 void continueAfterXFrameOptionsDenied(LocalFrame* frame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r, Resource* resource)
186 { 186 {
187 didReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource ); 187 didReceiveResourceResponseButCanceled(frame, loader, identifier, r, resource );
(...skipping 18 matching lines...) Expand all
206 if (context->isWorkerGlobalScope()) 206 if (context->isWorkerGlobalScope())
207 return instrumentingAgentsFor(toWorkerGlobalScope(context)); 207 return instrumentingAgentsFor(toWorkerGlobalScope(context));
208 if (context->isMainThreadWorkletGlobalScope()) 208 if (context->isMainThreadWorkletGlobalScope())
209 return instrumentingAgentsFor(toMainThreadWorkletGlobalScope(context)->f rame()); 209 return instrumentingAgentsFor(toMainThreadWorkletGlobalScope(context)->f rame());
210 return nullptr; 210 return nullptr;
211 } 211 }
212 212
213 } // namespace InspectorInstrumentation 213 } // namespace InspectorInstrumentation
214 214
215 } // namespace blink 215 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698