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

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

Issue 605453002: Merge 182515 "Revert "Mixed Content: Make MixedContentChecker co..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2167/
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
« no previous file with comments | « Source/core/html/parser/XSSAuditor.cpp ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
4 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
5 * Copyright (C) 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2011 Google Inc. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 21 matching lines...) Expand all
32 #ifndef FrameLoader_h 32 #ifndef FrameLoader_h
33 #define FrameLoader_h 33 #define FrameLoader_h
34 34
35 #include "core/dom/IconURL.h" 35 #include "core/dom/IconURL.h"
36 #include "core/dom/SandboxFlags.h" 36 #include "core/dom/SandboxFlags.h"
37 #include "core/dom/SecurityContext.h" 37 #include "core/dom/SecurityContext.h"
38 #include "core/fetch/ResourceLoaderOptions.h" 38 #include "core/fetch/ResourceLoaderOptions.h"
39 #include "core/loader/FrameLoaderStateMachine.h" 39 #include "core/loader/FrameLoaderStateMachine.h"
40 #include "core/loader/FrameLoaderTypes.h" 40 #include "core/loader/FrameLoaderTypes.h"
41 #include "core/loader/HistoryItem.h" 41 #include "core/loader/HistoryItem.h"
42 #include "core/loader/MixedContentChecker.h"
42 #include "platform/Timer.h" 43 #include "platform/Timer.h"
43 #include "platform/heap/Handle.h" 44 #include "platform/heap/Handle.h"
44 #include "platform/network/ResourceRequest.h" 45 #include "platform/network/ResourceRequest.h"
45 #include "wtf/Forward.h" 46 #include "wtf/Forward.h"
46 #include "wtf/HashSet.h" 47 #include "wtf/HashSet.h"
47 #include "wtf/OwnPtr.h" 48 #include "wtf/OwnPtr.h"
48 49
49 namespace blink { 50 namespace blink {
50 51
51 class DocumentLoader; 52 class DocumentLoader;
(...skipping 17 matching lines...) Expand all
69 public: 70 public:
70 static ResourceRequest requestFromHistoryItem(HistoryItem*, ResourceRequestC achePolicy); 71 static ResourceRequest requestFromHistoryItem(HistoryItem*, ResourceRequestC achePolicy);
71 72
72 FrameLoader(LocalFrame*); 73 FrameLoader(LocalFrame*);
73 ~FrameLoader(); 74 ~FrameLoader();
74 75
75 void init(); 76 void init();
76 77
77 LocalFrame* frame() const { return m_frame; } 78 LocalFrame* frame() const { return m_frame; }
78 79
80 MixedContentChecker* mixedContentChecker() const { return &m_mixedContentChe cker; }
79 ProgressTracker& progress() const { return *m_progressTracker; } 81 ProgressTracker& progress() const { return *m_progressTracker; }
80 82
81 // These functions start a load. All eventually call into loadWithNavigation Action() or loadInSameDocument(). 83 // These functions start a load. All eventually call into loadWithNavigation Action() or loadInSameDocument().
82 void load(const FrameLoadRequest&); // The entry point for non-reload, non-h istory loads. 84 void load(const FrameLoadRequest&); // The entry point for non-reload, non-h istory loads.
83 void reload(ReloadPolicy = NormalReload, const KURL& overrideURL = KURL(), c onst AtomicString& overrideEncoding = nullAtom, ClientRedirectPolicy = NotClient Redirect); 85 void reload(ReloadPolicy = NormalReload, const KURL& overrideURL = KURL(), c onst AtomicString& overrideEncoding = nullAtom, ClientRedirectPolicy = NotClient Redirect);
84 void loadHistoryItem(HistoryItem*, HistoryLoadType = HistoryDifferentDocumen tLoad, ResourceRequestCachePolicy = UseProtocolCachePolicy); // The entry point for all back/forward loads 86 void loadHistoryItem(HistoryItem*, HistoryLoadType = HistoryDifferentDocumen tLoad, ResourceRequestCachePolicy = UseProtocolCachePolicy); // The entry point for all back/forward loads
85 87
86 static void reportLocalLoadFailed(LocalFrame*, const String& url); 88 static void reportLocalLoadFailed(LocalFrame*, const String& url);
87 89
88 // FIXME: These are all functions which stop loads. We have too many. 90 // FIXME: These are all functions which stop loads. We have too many.
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 void loadInSameDocument(const KURL&, PassRefPtr<SerializedScriptValue> state Object, FrameLoadType, ClientRedirectPolicy); 217 void loadInSameDocument(const KURL&, PassRefPtr<SerializedScriptValue> state Object, FrameLoadType, ClientRedirectPolicy);
216 218
217 void scheduleCheckCompleted(); 219 void scheduleCheckCompleted();
218 220
219 RawPtrWillBeMember<LocalFrame> m_frame; 221 RawPtrWillBeMember<LocalFrame> m_frame;
220 222
221 // FIXME: These should be OwnPtr<T> to reduce build times and simplify 223 // FIXME: These should be OwnPtr<T> to reduce build times and simplify
222 // header dependencies unless performance testing proves otherwise. 224 // header dependencies unless performance testing proves otherwise.
223 // Some of these could be lazily created for memory savings on devices. 225 // Some of these could be lazily created for memory savings on devices.
224 mutable FrameLoaderStateMachine m_stateMachine; 226 mutable FrameLoaderStateMachine m_stateMachine;
227 mutable MixedContentChecker m_mixedContentChecker;
225 228
226 OwnPtr<ProgressTracker> m_progressTracker; 229 OwnPtr<ProgressTracker> m_progressTracker;
227 230
228 FrameState m_state; 231 FrameState m_state;
229 FrameLoadType m_loadType; 232 FrameLoadType m_loadType;
230 233
231 // Document loaders for the three phases of frame loading. Note that while 234 // Document loaders for the three phases of frame loading. Note that while
232 // a new request is being loaded, the old document loader may still be refer enced. 235 // a new request is being loaded, the old document loader may still be refer enced.
233 // E.g. while a new request is in the "policy" state, the old document loade r may 236 // E.g. while a new request is in the "policy" state, the old document loade r may
234 // be consulted in particular as it makes sense to imply certain settings on the new loader. 237 // be consulted in particular as it makes sense to imply certain settings on the new loader.
(...skipping 28 matching lines...) Expand all
263 266
264 bool m_didAccessInitialDocument; 267 bool m_didAccessInitialDocument;
265 Timer<FrameLoader> m_didAccessInitialDocumentTimer; 268 Timer<FrameLoader> m_didAccessInitialDocumentTimer;
266 269
267 SandboxFlags m_forcedSandboxFlags; 270 SandboxFlags m_forcedSandboxFlags;
268 }; 271 };
269 272
270 } // namespace blink 273 } // namespace blink
271 274
272 #endif // FrameLoader_h 275 #endif // FrameLoader_h
OLDNEW
« no previous file with comments | « Source/core/html/parser/XSSAuditor.cpp ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698