Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: Source/core/loader/FrameLoader.cpp

Issue 566533003: Mixed Content: Make MixedContentChecker completely static. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "core/inspector/ConsoleMessage.h" 60 #include "core/inspector/ConsoleMessage.h"
61 #include "core/inspector/InspectorController.h" 61 #include "core/inspector/InspectorController.h"
62 #include "core/inspector/InspectorInstrumentation.h" 62 #include "core/inspector/InspectorInstrumentation.h"
63 #include "core/loader/DocumentLoadTiming.h" 63 #include "core/loader/DocumentLoadTiming.h"
64 #include "core/loader/DocumentLoader.h" 64 #include "core/loader/DocumentLoader.h"
65 #include "core/loader/FormState.h" 65 #include "core/loader/FormState.h"
66 #include "core/loader/FormSubmission.h" 66 #include "core/loader/FormSubmission.h"
67 #include "core/loader/FrameFetchContext.h" 67 #include "core/loader/FrameFetchContext.h"
68 #include "core/loader/FrameLoadRequest.h" 68 #include "core/loader/FrameLoadRequest.h"
69 #include "core/loader/FrameLoaderClient.h" 69 #include "core/loader/FrameLoaderClient.h"
70 #include "core/loader/MixedContentChecker.h"
70 #include "core/loader/ProgressTracker.h" 71 #include "core/loader/ProgressTracker.h"
71 #include "core/loader/UniqueIdentifier.h" 72 #include "core/loader/UniqueIdentifier.h"
72 #include "core/loader/appcache/ApplicationCacheHost.h" 73 #include "core/loader/appcache/ApplicationCacheHost.h"
73 #include "core/page/BackForwardClient.h" 74 #include "core/page/BackForwardClient.h"
74 #include "core/page/Chrome.h" 75 #include "core/page/Chrome.h"
75 #include "core/page/ChromeClient.h" 76 #include "core/page/ChromeClient.h"
76 #include "core/page/CreateWindow.h" 77 #include "core/page/CreateWindow.h"
77 #include "core/page/EventHandler.h" 78 #include "core/page/EventHandler.h"
78 #include "core/page/FrameTree.h" 79 #include "core/page/FrameTree.h"
79 #include "core/page/Page.h" 80 #include "core/page/Page.h"
(...skipping 26 matching lines...) Expand all
106 return type == FrameLoadTypeBackForward; 107 return type == FrameLoadTypeBackForward;
107 } 108 }
108 109
109 static bool needsHistoryItemRestore(FrameLoadType type) 110 static bool needsHistoryItemRestore(FrameLoadType type)
110 { 111 {
111 return type == FrameLoadTypeBackForward || type == FrameLoadTypeReload || ty pe == FrameLoadTypeReloadFromOrigin; 112 return type == FrameLoadTypeBackForward || type == FrameLoadTypeReload || ty pe == FrameLoadTypeReloadFromOrigin;
112 } 113 }
113 114
114 FrameLoader::FrameLoader(LocalFrame* frame) 115 FrameLoader::FrameLoader(LocalFrame* frame)
115 : m_frame(frame) 116 : m_frame(frame)
116 , m_mixedContentChecker(frame)
117 , m_progressTracker(ProgressTracker::create(frame)) 117 , m_progressTracker(ProgressTracker::create(frame))
118 , m_state(FrameStateProvisional) 118 , m_state(FrameStateProvisional)
119 , m_loadType(FrameLoadTypeStandard) 119 , m_loadType(FrameLoadTypeStandard)
120 , m_fetchContext(FrameFetchContext::create(frame)) 120 , m_fetchContext(FrameFetchContext::create(frame))
121 , m_inStopAllLoaders(false) 121 , m_inStopAllLoaders(false)
122 , m_checkTimer(this, &FrameLoader::checkTimerFired) 122 , m_checkTimer(this, &FrameLoader::checkTimerFired)
123 , m_didAccessInitialDocument(false) 123 , m_didAccessInitialDocument(false)
124 , m_didAccessInitialDocumentTimer(this, &FrameLoader::didAccessInitialDocume ntTimerFired) 124 , m_didAccessInitialDocumentTimer(this, &FrameLoader::didAccessInitialDocume ntTimerFired)
125 , m_forcedSandboxFlags(SandboxNone) 125 , m_forcedSandboxFlags(SandboxNone)
126 { 126 {
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 // FIXME: We need a way to propagate sandbox flags to out-of-process frames. 1487 // FIXME: We need a way to propagate sandbox flags to out-of-process frames.
1488 Frame* parentFrame = m_frame->tree().parent(); 1488 Frame* parentFrame = m_frame->tree().parent();
1489 if (parentFrame && parentFrame->isLocalFrame()) 1489 if (parentFrame && parentFrame->isLocalFrame())
1490 flags |= toLocalFrame(parentFrame)->document()->sandboxFlags(); 1490 flags |= toLocalFrame(parentFrame)->document()->sandboxFlags();
1491 if (FrameOwner* frameOwner = m_frame->owner()) 1491 if (FrameOwner* frameOwner = m_frame->owner())
1492 flags |= frameOwner->sandboxFlags(); 1492 flags |= frameOwner->sandboxFlags();
1493 return flags; 1493 return flags;
1494 } 1494 }
1495 1495
1496 } // namespace blink 1496 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698