| OLD | NEW |
| 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 22 matching lines...) Expand all Loading... |
| 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 "core/loader/MixedContentChecker.h" |
| 43 #include "core/loader/NavigationPolicy.h" |
| 43 #include "platform/Timer.h" | 44 #include "platform/Timer.h" |
| 44 #include "platform/heap/Handle.h" | 45 #include "platform/heap/Handle.h" |
| 45 #include "platform/network/ResourceRequest.h" | 46 #include "platform/network/ResourceRequest.h" |
| 46 #include "wtf/Forward.h" | 47 #include "wtf/Forward.h" |
| 47 #include "wtf/HashSet.h" | 48 #include "wtf/HashSet.h" |
| 48 #include "wtf/OwnPtr.h" | 49 #include "wtf/OwnPtr.h" |
| 49 | 50 |
| 50 namespace blink { | 51 namespace blink { |
| 51 | 52 |
| 52 class DocumentLoader; | 53 class DocumentLoader; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 72 static ResourceRequest requestFromHistoryItem(HistoryItem*, ResourceRequestC
achePolicy); | 73 static ResourceRequest requestFromHistoryItem(HistoryItem*, ResourceRequestC
achePolicy); |
| 73 | 74 |
| 74 FrameLoader(LocalFrame*); | 75 FrameLoader(LocalFrame*); |
| 75 ~FrameLoader(); | 76 ~FrameLoader(); |
| 76 | 77 |
| 77 void init(); | 78 void init(); |
| 78 | 79 |
| 79 MixedContentChecker* mixedContentChecker() const { return &m_mixedContentChe
cker; } | 80 MixedContentChecker* mixedContentChecker() const { return &m_mixedContentChe
cker; } |
| 80 ProgressTracker& progress() const { return *m_progressTracker; } | 81 ProgressTracker& progress() const { return *m_progressTracker; } |
| 81 | 82 |
| 82 // These functions start a load. All eventually call into loadWithNavigation
Action() or loadInSameDocument(). | 83 // These functions start a load. All eventually call into startLoad() or loa
dInSameDocument(). |
| 83 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. |
| 84 void reload(ReloadPolicy, const KURL& overrideURL = KURL(), ClientRedirectPo
licy = NotClientRedirect); | 85 void reload(ReloadPolicy, const KURL& overrideURL = KURL(), ClientRedirectPo
licy = NotClientRedirect); |
| 85 void loadHistoryItem(HistoryItem*, FrameLoadType = FrameLoadTypeBackForward, | 86 void loadHistoryItem(HistoryItem*, FrameLoadType = FrameLoadTypeBackForward, |
| 86 HistoryLoadType = HistoryDifferentDocumentLoad, | 87 HistoryLoadType = HistoryDifferentDocumentLoad, |
| 87 ResourceRequestCachePolicy = UseProtocolCachePolicy); // The entry point
for all back/forward loads | 88 ResourceRequestCachePolicy = UseProtocolCachePolicy); // The entry point
for all back/forward loads |
| 88 | 89 |
| 89 static void reportLocalLoadFailed(LocalFrame*, const String& url); | 90 static void reportLocalLoadFailed(LocalFrame*, const String& url); |
| 90 | 91 |
| 91 // FIXME: These are all functions which stop loads. We have too many. | 92 // FIXME: These are all functions which stop loads. We have too many. |
| 92 // Warning: stopAllLoaders can and will detach the LocalFrame out from under
you. All callers need to either protect the LocalFrame | 93 // Warning: stopAllLoaders can and will detach the LocalFrame out from under
you. All callers need to either protect the LocalFrame |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 FrameLoadType determineFrameLoadType(const FrameLoadRequest&); | 199 FrameLoadType determineFrameLoadType(const FrameLoadRequest&); |
| 199 bool isScriptTriggeredFormSubmissionInChildFrame(const FrameLoadRequest&) co
nst; | 200 bool isScriptTriggeredFormSubmissionInChildFrame(const FrameLoadRequest&) co
nst; |
| 200 | 201 |
| 201 SubstituteData defaultSubstituteDataForURL(const KURL&); | 202 SubstituteData defaultSubstituteDataForURL(const KURL&); |
| 202 | 203 |
| 203 bool shouldPerformFragmentNavigation(bool isFormSubmission, const String& ht
tpMethod, FrameLoadType, const KURL&); | 204 bool shouldPerformFragmentNavigation(bool isFormSubmission, const String& ht
tpMethod, FrameLoadType, const KURL&); |
| 204 void scrollToFragmentWithParentBoundary(const KURL&); | 205 void scrollToFragmentWithParentBoundary(const KURL&); |
| 205 | 206 |
| 206 bool checkLoadCompleteForThisFrame(); | 207 bool checkLoadCompleteForThisFrame(); |
| 207 | 208 |
| 208 // Calls continueLoadAfterNavigationPolicy | 209 void startLoad(FrameLoadRequest&, FrameLoadType, NavigationPolicy); |
| 209 void loadWithNavigationAction(const NavigationAction&, FrameLoadType, PassRe
fPtrWillBeRawPtr<FormState>, | |
| 210 const SubstituteData&, ContentSecurityPolicyDisposition shouldCheckMainW
orldContentSecurityPolicy, ClientRedirectPolicy = NotClientRedirect, Event* trig
geringEvent = nullptr); | |
| 211 | 210 |
| 212 bool validateTransitionNavigationMode(); | 211 bool validateTransitionNavigationMode(); |
| 213 bool dispatchNavigationTransitionData(); | 212 bool dispatchNavigationTransitionData(); |
| 214 | 213 |
| 215 void setHistoryItemStateForCommit(HistoryCommitType, bool isPushOrReplaceSta
te = false, PassRefPtr<SerializedScriptValue> = nullptr); | 214 void setHistoryItemStateForCommit(HistoryCommitType, bool isPushOrReplaceSta
te = false, PassRefPtr<SerializedScriptValue> = nullptr); |
| 216 | 215 |
| 217 void loadInSameDocument(const KURL&, PassRefPtr<SerializedScriptValue> state
Object, FrameLoadType, ClientRedirectPolicy); | 216 void loadInSameDocument(const KURL&, PassRefPtr<SerializedScriptValue> state
Object, FrameLoadType, ClientRedirectPolicy); |
| 218 | 217 |
| 219 void scheduleCheckCompleted(); | 218 void scheduleCheckCompleted(); |
| 220 | 219 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 274 |
| 276 bool m_didAccessInitialDocument; | 275 bool m_didAccessInitialDocument; |
| 277 Timer<FrameLoader> m_didAccessInitialDocumentTimer; | 276 Timer<FrameLoader> m_didAccessInitialDocumentTimer; |
| 278 | 277 |
| 279 SandboxFlags m_forcedSandboxFlags; | 278 SandboxFlags m_forcedSandboxFlags; |
| 280 }; | 279 }; |
| 281 | 280 |
| 282 } // namespace blink | 281 } // namespace blink |
| 283 | 282 |
| 284 #endif // FrameLoader_h | 283 #endif // FrameLoader_h |
| OLD | NEW |