| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |