| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #include "core/loader/DocumentLoader.h" | 67 #include "core/loader/DocumentLoader.h" |
| 68 #include "core/loader/FormSubmission.h" | 68 #include "core/loader/FormSubmission.h" |
| 69 #include "core/loader/FrameLoadRequest.h" | 69 #include "core/loader/FrameLoadRequest.h" |
| 70 #include "core/loader/FrameLoaderClient.h" | 70 #include "core/loader/FrameLoaderClient.h" |
| 71 #include "core/loader/LinkLoader.h" | 71 #include "core/loader/LinkLoader.h" |
| 72 #include "core/loader/MixedContentChecker.h" | 72 #include "core/loader/MixedContentChecker.h" |
| 73 #include "core/loader/NavigationScheduler.h" | 73 #include "core/loader/NavigationScheduler.h" |
| 74 #include "core/loader/NetworkHintsInterface.h" | 74 #include "core/loader/NetworkHintsInterface.h" |
| 75 #include "core/loader/ProgressTracker.h" | 75 #include "core/loader/ProgressTracker.h" |
| 76 #include "core/loader/appcache/ApplicationCacheHost.h" | 76 #include "core/loader/appcache/ApplicationCacheHost.h" |
| 77 #include "core/origin_trials/OriginTrialContext.h" |
| 77 #include "core/page/ChromeClient.h" | 78 #include "core/page/ChromeClient.h" |
| 78 #include "core/page/CreateWindow.h" | 79 #include "core/page/CreateWindow.h" |
| 79 #include "core/page/FrameTree.h" | 80 #include "core/page/FrameTree.h" |
| 80 #include "core/page/Page.h" | 81 #include "core/page/Page.h" |
| 81 #include "core/page/WindowFeatures.h" | 82 #include "core/page/WindowFeatures.h" |
| 82 #include "core/page/scrolling/ScrollingCoordinator.h" | 83 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 83 #include "core/svg/graphics/SVGImage.h" | 84 #include "core/svg/graphics/SVGImage.h" |
| 84 #include "core/xml/parser/XMLDocumentParser.h" | 85 #include "core/xml/parser/XMLDocumentParser.h" |
| 85 #include "platform/Logging.h" | 86 #include "platform/Logging.h" |
| 86 #include "platform/PluginScriptForbiddenScope.h" | 87 #include "platform/PluginScriptForbiddenScope.h" |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 m_frame->document()->parseDNSPrefetchControlHeader(dnsPrefetchContro
l); | 474 m_frame->document()->parseDNSPrefetchControlHeader(dnsPrefetchContro
l); |
| 474 | 475 |
| 475 String headerContentLanguage = m_documentLoader->response().httpHeaderFi
eld(HTTPNames::Content_Language); | 476 String headerContentLanguage = m_documentLoader->response().httpHeaderFi
eld(HTTPNames::Content_Language); |
| 476 if (!headerContentLanguage.isEmpty()) { | 477 if (!headerContentLanguage.isEmpty()) { |
| 477 size_t commaIndex = headerContentLanguage.find(','); | 478 size_t commaIndex = headerContentLanguage.find(','); |
| 478 headerContentLanguage.truncate(commaIndex); // kNotFound == -1 == do
n't truncate | 479 headerContentLanguage.truncate(commaIndex); // kNotFound == -1 == do
n't truncate |
| 479 headerContentLanguage = headerContentLanguage.stripWhiteSpace(isHTML
Space<UChar>); | 480 headerContentLanguage = headerContentLanguage.stripWhiteSpace(isHTML
Space<UChar>); |
| 480 if (!headerContentLanguage.isEmpty()) | 481 if (!headerContentLanguage.isEmpty()) |
| 481 m_frame->document()->setContentLanguage(AtomicString(headerConte
ntLanguage)); | 482 m_frame->document()->setContentLanguage(AtomicString(headerConte
ntLanguage)); |
| 482 } | 483 } |
| 484 |
| 485 OriginTrialContext::addTokensFromHeader(m_frame->document(), m_documentL
oader->response().httpHeaderField(HTTPNames::Origin_Trial)); |
| 483 } | 486 } |
| 484 | 487 |
| 485 if (m_provisionalItem && isBackForwardLoadType(m_loadType)) | 488 if (m_provisionalItem && isBackForwardLoadType(m_loadType)) |
| 486 m_frame->document()->setStateForNewFormElements(m_provisionalItem->docum
entState()); | 489 m_frame->document()->setStateForNewFormElements(m_provisionalItem->docum
entState()); |
| 487 | 490 |
| 488 client()->didCreateNewDocument(); | 491 client()->didCreateNewDocument(); |
| 489 } | 492 } |
| 490 | 493 |
| 491 void FrameLoader::finishedParsing() | 494 void FrameLoader::finishedParsing() |
| 492 { | 495 { |
| (...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1564 // FIXME: We need a way to propagate insecure requests policy flags to | 1567 // FIXME: We need a way to propagate insecure requests policy flags to |
| 1565 // out-of-process frames. For now, we'll always use default behavior. | 1568 // out-of-process frames. For now, we'll always use default behavior. |
| 1566 if (!parentFrame->isLocalFrame()) | 1569 if (!parentFrame->isLocalFrame()) |
| 1567 return nullptr; | 1570 return nullptr; |
| 1568 | 1571 |
| 1569 ASSERT(toLocalFrame(parentFrame)->document()); | 1572 ASSERT(toLocalFrame(parentFrame)->document()); |
| 1570 return toLocalFrame(parentFrame)->document()->insecureNavigationsToUpgrade()
; | 1573 return toLocalFrame(parentFrame)->document()->insecureNavigationsToUpgrade()
; |
| 1571 } | 1574 } |
| 1572 | 1575 |
| 1573 } // namespace blink | 1576 } // namespace blink |
| OLD | NEW |