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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2211283004: Drop test-only WebFrameClient params/functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 } 916 }
917 917
918 void WebLocalFrameImpl::setReferrerForRequest(WebURLRequest& request, const WebU RL& referrerURL) 918 void WebLocalFrameImpl::setReferrerForRequest(WebURLRequest& request, const WebU RL& referrerURL)
919 { 919 {
920 String referrer = referrerURL.isEmpty() ? frame()->document()->outgoingRefer rer() : String(referrerURL.string()); 920 String referrer = referrerURL.isEmpty() ? frame()->document()->outgoingRefer rer() : String(referrerURL.string());
921 request.toMutableResourceRequest().setHTTPReferrer(SecurityPolicy::generateR eferrer(frame()->document()->getReferrerPolicy(), request.url(), referrer)); 921 request.toMutableResourceRequest().setHTTPReferrer(SecurityPolicy::generateR eferrer(frame()->document()->getReferrerPolicy(), request.url(), referrer));
922 } 922 }
923 923
924 void WebLocalFrameImpl::dispatchWillSendRequest(WebURLRequest& request) 924 void WebLocalFrameImpl::dispatchWillSendRequest(WebURLRequest& request)
925 { 925 {
926 ResourceResponse response; 926 frame()->loader().client()->dispatchWillSendRequest(request.toMutableResourc eRequest());
927 frame()->loader().client()->dispatchWillSendRequest(0, 0, request.toMutableR esourceRequest(), response);
928 } 927 }
929 928
930 WebURLLoader* WebLocalFrameImpl::createAssociatedURLLoader(const WebURLLoaderOpt ions& options) 929 WebURLLoader* WebLocalFrameImpl::createAssociatedURLLoader(const WebURLLoaderOpt ions& options)
931 { 930 {
932 return new AssociatedURLLoader(this, options); 931 return new AssociatedURLLoader(this, options);
933 } 932 }
934 933
935 unsigned WebLocalFrameImpl::unloadListenerCount() const 934 unsigned WebLocalFrameImpl::unloadListenerCount() const
936 { 935 {
937 return frame()->localDOMWindow()->pendingUnloadEventListeners(); 936 return frame()->localDOMWindow()->pendingUnloadEventListeners();
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2196 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; 2195 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol;
2197 } else if (metric == "wasAlternateProtocolAvailable") { 2196 } else if (metric == "wasAlternateProtocolAvailable") {
2198 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; 2197 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable;
2199 } else if (metric == "connectionInfo") { 2198 } else if (metric == "connectionInfo") {
2200 feature = UseCounter::ChromeLoadTimesConnectionInfo; 2199 feature = UseCounter::ChromeLoadTimesConnectionInfo;
2201 } 2200 }
2202 UseCounter::count(frame(), feature); 2201 UseCounter::count(frame(), feature);
2203 } 2202 }
2204 2203
2205 } // namespace blink 2204 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698