| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 return resource.get(); | 203 return resource.get(); |
| 204 } | 204 } |
| 205 | 205 |
| 206 void DocumentLoader::didChangePerformanceTiming() | 206 void DocumentLoader::didChangePerformanceTiming() |
| 207 { | 207 { |
| 208 if (frame() && frame()->isMainFrame() && m_state >= Committed) { | 208 if (frame() && frame()->isMainFrame() && m_state >= Committed) { |
| 209 frameLoader()->client()->didChangePerformanceTiming(); | 209 frameLoader()->client()->didChangePerformanceTiming(); |
| 210 } | 210 } |
| 211 } | 211 } |
| 212 | 212 |
| 213 void DocumentLoader::didUseExperiment(WebExperimentData data) |
| 214 { |
| 215 if (frame() && frame()->isMainFrame() && m_state >= Committed) { |
| 216 frameLoader()->client()->didUseExperiment(data); |
| 217 } |
| 218 } |
| 219 |
| 213 void DocumentLoader::updateForSameDocumentNavigation(const KURL& newURL, SameDoc
umentNavigationSource sameDocumentNavigationSource) | 220 void DocumentLoader::updateForSameDocumentNavigation(const KURL& newURL, SameDoc
umentNavigationSource sameDocumentNavigationSource) |
| 214 { | 221 { |
| 215 KURL oldURL = m_request.url(); | 222 KURL oldURL = m_request.url(); |
| 216 m_originalRequest.setURL(newURL); | 223 m_originalRequest.setURL(newURL); |
| 217 m_request.setURL(newURL); | 224 m_request.setURL(newURL); |
| 218 if (sameDocumentNavigationSource == SameDocumentNavigationHistoryApi) { | 225 if (sameDocumentNavigationSource == SameDocumentNavigationHistoryApi) { |
| 219 m_request.setHTTPMethod(HTTPNames::GET); | 226 m_request.setHTTPMethod(HTTPNames::GET); |
| 220 m_request.setHTTPBody(nullptr); | 227 m_request.setHTTPBody(nullptr); |
| 221 } | 228 } |
| 222 clearRedirectChain(); | 229 clearRedirectChain(); |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 { | 707 { |
| 701 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); | 708 m_writer = createWriterFor(init, mimeType(), m_writer ? m_writer->encoding()
: emptyAtom, true, ForceSynchronousParsing); |
| 702 if (!source.isNull()) | 709 if (!source.isNull()) |
| 703 m_writer->appendReplacingData(source); | 710 m_writer->appendReplacingData(source); |
| 704 endWriting(m_writer.get()); | 711 endWriting(m_writer.get()); |
| 705 } | 712 } |
| 706 | 713 |
| 707 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 714 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 708 | 715 |
| 709 } // namespace blink | 716 } // namespace blink |
| OLD | NEW |