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

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

Issue 2703253002: devtools: Make it possible to override the navigation referrer (Closed)
Patch Set: Reworked into a inspector protocol test Created 3 years, 9 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 optionalScriptToEvaluateOnLoad.fromMaybe(""); 445 optionalScriptToEvaluateOnLoad.fromMaybe("");
446 m_v8Session->setSkipAllPauses(true); 446 m_v8Session->setSkipAllPauses(true);
447 m_reloading = true; 447 m_reloading = true;
448 m_inspectedFrames->root()->reload(optionalBypassCache.fromMaybe(false) 448 m_inspectedFrames->root()->reload(optionalBypassCache.fromMaybe(false)
449 ? FrameLoadTypeReloadBypassingCache 449 ? FrameLoadTypeReloadBypassingCache
450 : FrameLoadTypeReloadMainResource, 450 : FrameLoadTypeReloadMainResource,
451 ClientRedirectPolicy::NotClientRedirect); 451 ClientRedirectPolicy::NotClientRedirect);
452 return Response::OK(); 452 return Response::OK();
453 } 453 }
454 454
455 Response InspectorPageAgent::navigate(const String& url, String* outFrameId) { 455 Response InspectorPageAgent::navigate(const String& url,
456 Maybe<String> referrer,
457 String* outFrameId) {
456 *outFrameId = frameId(m_inspectedFrames->root()); 458 *outFrameId = frameId(m_inspectedFrames->root());
457 return Response::OK(); 459 return Response::OK();
458 } 460 }
459 461
460 Response InspectorPageAgent::stopLoading() { 462 Response InspectorPageAgent::stopLoading() {
461 return Response::OK(); 463 return Response::OK();
462 } 464 }
463 465
464 static void cachedResourcesForDocument(Document* document, 466 static void cachedResourcesForDocument(Document* document,
465 HeapVector<Member<Resource>>& result, 467 HeapVector<Member<Resource>>& result,
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 return Response::OK(); 883 return Response::OK();
882 } 884 }
883 885
884 DEFINE_TRACE(InspectorPageAgent) { 886 DEFINE_TRACE(InspectorPageAgent) {
885 visitor->trace(m_inspectedFrames); 887 visitor->trace(m_inspectedFrames);
886 visitor->trace(m_inspectorResourceContentLoader); 888 visitor->trace(m_inspectorResourceContentLoader);
887 InspectorBaseAgent::trace(visitor); 889 InspectorBaseAgent::trace(visitor);
888 } 890 }
889 891
890 } // namespace blink 892 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698