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

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: test fix Created 4 years, 4 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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 } 928 }
929 929
930 void WebLocalFrameImpl::setReferrerForRequest(WebURLRequest& request, const WebU RL& referrerURL) 930 void WebLocalFrameImpl::setReferrerForRequest(WebURLRequest& request, const WebU RL& referrerURL)
931 { 931 {
932 String referrer = referrerURL.isEmpty() ? frame()->document()->outgoingRefer rer() : String(referrerURL.string()); 932 String referrer = referrerURL.isEmpty() ? frame()->document()->outgoingRefer rer() : String(referrerURL.string());
933 request.toMutableResourceRequest().setHTTPReferrer(SecurityPolicy::generateR eferrer(frame()->document()->getReferrerPolicy(), request.url(), referrer)); 933 request.toMutableResourceRequest().setHTTPReferrer(SecurityPolicy::generateR eferrer(frame()->document()->getReferrerPolicy(), request.url(), referrer));
934 } 934 }
935 935
936 void WebLocalFrameImpl::dispatchWillSendRequest(WebURLRequest& request) 936 void WebLocalFrameImpl::dispatchWillSendRequest(WebURLRequest& request)
937 { 937 {
938 ResourceResponse response; 938 frame()->loader().client()->dispatchWillSendRequest(request.toMutableResourc eRequest());
939 frame()->loader().client()->dispatchWillSendRequest(0, 0, request.toMutableR esourceRequest(), response);
940 } 939 }
941 940
942 WebURLLoader* WebLocalFrameImpl::createAssociatedURLLoader(const WebURLLoaderOpt ions& options) 941 WebURLLoader* WebLocalFrameImpl::createAssociatedURLLoader(const WebURLLoaderOpt ions& options)
943 { 942 {
944 return new AssociatedURLLoader(this, options); 943 return new AssociatedURLLoader(this, options);
945 } 944 }
946 945
947 unsigned WebLocalFrameImpl::unloadListenerCount() const 946 unsigned WebLocalFrameImpl::unloadListenerCount() const
948 { 947 {
949 return frame()->localDOMWindow()->pendingUnloadEventListeners(); 948 return frame()->localDOMWindow()->pendingUnloadEventListeners();
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2182 { 2181 {
2183 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags)); 2182 frame()->loader().forceSandboxFlags(static_cast<SandboxFlags>(flags));
2184 } 2183 }
2185 2184
2186 void WebLocalFrameImpl::clearActiveFindMatch() 2185 void WebLocalFrameImpl::clearActiveFindMatch()
2187 { 2186 {
2188 ensureTextFinder().clearActiveFindMatch(); 2187 ensureTextFinder().clearActiveFindMatch();
2189 } 2188 }
2190 2189
2191 } // namespace blink 2190 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698