| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
| 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
| 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> | 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> |
| 8 * Copyright (C) 2011 Google Inc. All rights reserved. | 8 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 #include "core/page/ChromeClient.h" | 78 #include "core/page/ChromeClient.h" |
| 79 #include "core/page/CreateWindow.h" | 79 #include "core/page/CreateWindow.h" |
| 80 #include "core/page/FrameTree.h" | 80 #include "core/page/FrameTree.h" |
| 81 #include "core/page/Page.h" | 81 #include "core/page/Page.h" |
| 82 #include "core/page/WindowFeatures.h" | 82 #include "core/page/WindowFeatures.h" |
| 83 #include "core/page/scrolling/ScrollingCoordinator.h" | 83 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 84 #include "core/svg/graphics/SVGImage.h" | 84 #include "core/svg/graphics/SVGImage.h" |
| 85 #include "core/xml/parser/XMLDocumentParser.h" | 85 #include "core/xml/parser/XMLDocumentParser.h" |
| 86 #include "platform/Logging.h" | 86 #include "platform/Logging.h" |
| 87 #include "platform/PluginScriptForbiddenScope.h" | 87 #include "platform/PluginScriptForbiddenScope.h" |
| 88 #include "platform/RuntimeEnabledFeatures.h" |
| 88 #include "platform/ScriptForbiddenScope.h" | 89 #include "platform/ScriptForbiddenScope.h" |
| 89 #include "platform/TraceEvent.h" | 90 #include "platform/TraceEvent.h" |
| 90 #include "platform/UserGestureIndicator.h" | 91 #include "platform/UserGestureIndicator.h" |
| 91 #include "platform/network/HTTPParsers.h" | 92 #include "platform/network/HTTPParsers.h" |
| 92 #include "platform/network/ResourceRequest.h" | 93 #include "platform/network/ResourceRequest.h" |
| 93 #include "platform/scroll/ScrollAnimatorBase.h" | 94 #include "platform/scroll/ScrollAnimatorBase.h" |
| 94 #include "platform/weborigin/SecurityOrigin.h" | 95 #include "platform/weborigin/SecurityOrigin.h" |
| 95 #include "platform/weborigin/SecurityPolicy.h" | 96 #include "platform/weborigin/SecurityPolicy.h" |
| 96 #include "platform/weborigin/Suborigin.h" | 97 #include "platform/weborigin/Suborigin.h" |
| 97 #include "public/platform/WebCachePolicy.h" | 98 #include "public/platform/WebCachePolicy.h" |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 size_t commaIndex = headerContentLanguage.find(','); | 509 size_t commaIndex = headerContentLanguage.find(','); |
| 509 headerContentLanguage.truncate(commaIndex); // kNotFound == -1 == do
n't truncate | 510 headerContentLanguage.truncate(commaIndex); // kNotFound == -1 == do
n't truncate |
| 510 headerContentLanguage = headerContentLanguage.stripWhiteSpace(isHTML
Space<UChar>); | 511 headerContentLanguage = headerContentLanguage.stripWhiteSpace(isHTML
Space<UChar>); |
| 511 if (!headerContentLanguage.isEmpty()) | 512 if (!headerContentLanguage.isEmpty()) |
| 512 m_frame->document()->setContentLanguage(AtomicString(headerConte
ntLanguage)); | 513 m_frame->document()->setContentLanguage(AtomicString(headerConte
ntLanguage)); |
| 513 } | 514 } |
| 514 | 515 |
| 515 OriginTrialContext::addTokensFromHeader(m_frame->document(), m_documentL
oader->response().httpHeaderField(HTTPNames::Origin_Trial)); | 516 OriginTrialContext::addTokensFromHeader(m_frame->document(), m_documentL
oader->response().httpHeaderField(HTTPNames::Origin_Trial)); |
| 516 } | 517 } |
| 517 | 518 |
| 519 if (m_documentLoader && RuntimeEnabledFeatures::referrerPolicyHeaderEnabled(
)) { |
| 520 String referrerPolicyHeader = m_documentLoader->response().httpHeaderFie
ld(HTTPNames::Referrer_Policy); |
| 521 if (!referrerPolicyHeader.isNull()) { |
| 522 m_frame->document()->parseAndSetReferrerPolicy(referrerPolicyHeader)
; |
| 523 } |
| 524 } |
| 525 |
| 518 client()->didCreateNewDocument(); | 526 client()->didCreateNewDocument(); |
| 519 } | 527 } |
| 520 | 528 |
| 521 void FrameLoader::finishedParsing() | 529 void FrameLoader::finishedParsing() |
| 522 { | 530 { |
| 523 if (m_stateMachine.creatingInitialEmptyDocument()) | 531 if (m_stateMachine.creatingInitialEmptyDocument()) |
| 524 return; | 532 return; |
| 525 | 533 |
| 526 m_progressTracker->finishedParsing(); | 534 m_progressTracker->finishedParsing(); |
| 527 | 535 |
| (...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1610 tracedValue->setString("documentLoaderURL", m_documentLoader ? m_documentLoa
der->url() : String()); | 1618 tracedValue->setString("documentLoaderURL", m_documentLoader ? m_documentLoa
der->url() : String()); |
| 1611 return tracedValue; | 1619 return tracedValue; |
| 1612 } | 1620 } |
| 1613 | 1621 |
| 1614 inline void FrameLoader::takeObjectSnapshot() const | 1622 inline void FrameLoader::takeObjectSnapshot() const |
| 1615 { | 1623 { |
| 1616 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("loading", "FrameLoader", this, toTraced
Value()); | 1624 TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID("loading", "FrameLoader", this, toTraced
Value()); |
| 1617 } | 1625 } |
| 1618 | 1626 |
| 1619 } // namespace blink | 1627 } // namespace blink |
| OLD | NEW |