| 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 void WebLocalFrameImpl::setReferrerForRequest(WebURLRequest& request, | 916 void WebLocalFrameImpl::setReferrerForRequest(WebURLRequest& request, |
| 917 const WebURL& referrerURL) { | 917 const WebURL& referrerURL) { |
| 918 String referrer = referrerURL.isEmpty() | 918 String referrer = referrerURL.isEmpty() |
| 919 ? frame()->document()->outgoingReferrer() | 919 ? frame()->document()->outgoingReferrer() |
| 920 : String(referrerURL.string()); | 920 : String(referrerURL.string()); |
| 921 request.toMutableResourceRequest().setHTTPReferrer( | 921 request.toMutableResourceRequest().setHTTPReferrer( |
| 922 SecurityPolicy::generateReferrer(frame()->document()->getReferrerPolicy(), | 922 SecurityPolicy::generateReferrer(frame()->document()->getReferrerPolicy(), |
| 923 request.url(), referrer)); | 923 request.url(), referrer)); |
| 924 } | 924 } |
| 925 | 925 |
| 926 void WebLocalFrameImpl::dispatchWillSendRequest(WebURLRequest& request) { | |
| 927 frame()->loader().client()->dispatchWillSendRequest( | |
| 928 request.toMutableResourceRequest()); | |
| 929 } | |
| 930 | |
| 931 WebAssociatedURLLoader* WebLocalFrameImpl::createAssociatedURLLoader( | 926 WebAssociatedURLLoader* WebLocalFrameImpl::createAssociatedURLLoader( |
| 932 const WebAssociatedURLLoaderOptions& options) { | 927 const WebAssociatedURLLoaderOptions& options) { |
| 933 return new WebAssociatedURLLoaderImpl(this, options); | 928 return new WebAssociatedURLLoaderImpl(this, options); |
| 934 } | 929 } |
| 935 | 930 |
| 936 unsigned WebLocalFrameImpl::unloadListenerCount() const { | 931 unsigned WebLocalFrameImpl::unloadListenerCount() const { |
| 937 return frame()->domWindow()->pendingUnloadEventListeners(); | 932 return frame()->domWindow()->pendingUnloadEventListeners(); |
| 938 } | 933 } |
| 939 | 934 |
| 940 void WebLocalFrameImpl::replaceSelection(const WebString& text) { | 935 void WebLocalFrameImpl::replaceSelection(const WebString& text) { |
| (...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2431 createMarkup(startPosition, endPosition, AnnotateForInterchange, | 2426 createMarkup(startPosition, endPosition, AnnotateForInterchange, |
| 2432 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); | 2427 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); |
| 2433 } else { | 2428 } else { |
| 2434 clipHtml = | 2429 clipHtml = |
| 2435 createMarkup(endPosition, startPosition, AnnotateForInterchange, | 2430 createMarkup(endPosition, startPosition, AnnotateForInterchange, |
| 2436 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); | 2431 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); |
| 2437 } | 2432 } |
| 2438 } | 2433 } |
| 2439 | 2434 |
| 2440 } // namespace blink | 2435 } // namespace blink |
| OLD | NEW |