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

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

Issue 1617043002: Introduce AncestorThrottle, which will process 'X-Frame-Options' headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@block-response
Patch Set: DCHECK. Created 4 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
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 bool isDebuggerPaused(LocalFrame*) 169 bool isDebuggerPaused(LocalFrame*)
170 { 170 {
171 return MainThreadDebugger::instance()->debugger()->isPaused(); 171 return MainThreadDebugger::instance()->debugger()->isPaused();
172 } 172 }
173 173
174 void didReceiveResourceResponseButCanceled(LocalFrame* frame, DocumentLoader* lo ader, unsigned long identifier, const ResourceResponse& r) 174 void didReceiveResourceResponseButCanceled(LocalFrame* frame, DocumentLoader* lo ader, unsigned long identifier, const ResourceResponse& r)
175 { 175 {
176 didReceiveResourceResponse(frame, identifier, loader, r, 0); 176 didReceiveResourceResponse(frame, identifier, loader, r, 0);
177 } 177 }
178 178
179 void continueAfterXFrameOptionsDenied(LocalFrame* frame, DocumentLoader* loader, unsigned long identifier, const ResourceResponse& r) 179 void canceledAfterReceivedResourceResponse(LocalFrame* frame, DocumentLoader* lo ader, unsigned long identifier, const ResourceResponse& r)
180 { 180 {
181 didReceiveResourceResponseButCanceled(frame, loader, identifier, r); 181 didReceiveResourceResponseButCanceled(frame, loader, identifier, r);
182 } 182 }
183 183
184 void continueWithPolicyIgnore(LocalFrame* frame, DocumentLoader* loader, unsigne d long identifier, const ResourceResponse& r) 184 void continueWithPolicyIgnore(LocalFrame* frame, DocumentLoader* loader, unsigne d long identifier, const ResourceResponse& r)
185 { 185 {
186 didReceiveResourceResponseButCanceled(frame, loader, identifier, r); 186 didReceiveResourceResponseButCanceled(frame, loader, identifier, r);
187 } 187 }
188 188
189 void removedResourceFromMemoryCache(Resource* cachedResource) 189 void removedResourceFromMemoryCache(Resource* cachedResource)
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 if (context->isWorkerGlobalScope()) 244 if (context->isWorkerGlobalScope())
245 return instrumentingAgentsFor(toWorkerGlobalScope(context)); 245 return instrumentingAgentsFor(toWorkerGlobalScope(context));
246 if (context->isWorkletGlobalScope()) 246 if (context->isWorkletGlobalScope())
247 return instrumentingAgentsFor(toMainThreadWorkletGlobalScope(context)->f rame()); 247 return instrumentingAgentsFor(toMainThreadWorkletGlobalScope(context)->f rame());
248 return nullptr; 248 return nullptr;
249 } 249 }
250 250
251 } // namespace InspectorInstrumentation 251 } // namespace InspectorInstrumentation
252 252
253 } // namespace blink 253 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698