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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 ~FrameLoader(); | 79 ~FrameLoader(); |
80 | 80 |
81 void init(); | 81 void init(); |
82 | 82 |
83 Frame* frame() const { return m_frame; } | 83 Frame* frame() const { return m_frame; } |
84 | 84 |
85 MixedContentChecker* mixedContentChecker() const { return &m_mixedContentChe
cker; } | 85 MixedContentChecker* mixedContentChecker() const { return &m_mixedContentChe
cker; } |
86 | 86 |
87 // These functions start a load. All eventually call into loadWithNavigation
Action() or loadInSameDocument(). | 87 // These functions start a load. All eventually call into loadWithNavigation
Action() or loadInSameDocument(). |
88 void load(const FrameLoadRequest&); // The entry point for non-reload, non-h
istory loads. | 88 void load(const FrameLoadRequest&); // The entry point for non-reload, non-h
istory loads. |
89 void reload(ReloadPolicy = NormalReload, const KURL& overrideURL = KURL(), c
onst String& overrideEncoding = String()); | 89 void reload(ReloadPolicy = NormalReload, const KURL& overrideURL = KURL(), c
onst AtomicString& overrideEncoding = nullAtom); |
90 void loadHistoryItem(HistoryItem*, HistoryLoadType = HistoryDifferentDocumen
tLoad); // The entry point for all back/forward loads | 90 void loadHistoryItem(HistoryItem*, HistoryLoadType = HistoryDifferentDocumen
tLoad); // The entry point for all back/forward loads |
91 | 91 |
92 static void reportLocalLoadFailed(Frame*, const String& url); | 92 static void reportLocalLoadFailed(Frame*, const String& url); |
93 | 93 |
94 // FIXME: These are all functions which stop loads. We have too many. | 94 // FIXME: These are all functions which stop loads. We have too many. |
95 // Warning: stopAllLoaders can and will detach the Frame out from under you.
All callers need to either protect the Frame | 95 // Warning: stopAllLoaders can and will detach the Frame out from under you.
All callers need to either protect the Frame |
96 // or guarantee they won't in any way access the Frame after stopAllLoaders
returns. | 96 // or guarantee they won't in any way access the Frame after stopAllLoaders
returns. |
97 void stopAllLoaders(); | 97 void stopAllLoaders(); |
98 void stopLoading(); | 98 void stopLoading(); |
99 bool closeURL(); | 99 bool closeURL(); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 bool shouldPerformFragmentNavigation(bool isFormSubmission, const String& ht
tpMethod, FrameLoadType, const KURL&); | 230 bool shouldPerformFragmentNavigation(bool isFormSubmission, const String& ht
tpMethod, FrameLoadType, const KURL&); |
231 void scrollToFragmentWithParentBoundary(const KURL&); | 231 void scrollToFragmentWithParentBoundary(const KURL&); |
232 | 232 |
233 void checkLoadCompleteForThisFrame(); | 233 void checkLoadCompleteForThisFrame(); |
234 | 234 |
235 void closeOldDataSources(); | 235 void closeOldDataSources(); |
236 | 236 |
237 // Calls continueLoadAfterNavigationPolicy | 237 // Calls continueLoadAfterNavigationPolicy |
238 void loadWithNavigationAction(const NavigationAction&, FrameLoadType, PassRe
fPtr<FormState>, | 238 void loadWithNavigationAction(const NavigationAction&, FrameLoadType, PassRe
fPtr<FormState>, |
239 const SubstituteData&, ClientRedirectPolicy = NotClientRedirect, const S
tring& overrideEncoding = String()); | 239 const SubstituteData&, ClientRedirectPolicy = NotClientRedirect, const A
tomicString& overrideEncoding = nullAtom); |
240 | 240 |
241 void detachChildren(); | 241 void detachChildren(); |
242 void closeAndRemoveChild(Frame*); | 242 void closeAndRemoveChild(Frame*); |
243 | 243 |
244 enum HistoryItemPolicy { | 244 enum HistoryItemPolicy { |
245 CreateNewHistoryItem, | 245 CreateNewHistoryItem, |
246 DoNotCreateNewHistoryItem | 246 DoNotCreateNewHistoryItem |
247 }; | 247 }; |
248 void setHistoryItemStateForCommit(HistoryItemPolicy); | 248 void setHistoryItemStateForCommit(HistoryItemPolicy); |
249 | 249 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 293 |
294 bool m_didAccessInitialDocument; | 294 bool m_didAccessInitialDocument; |
295 Timer<FrameLoader> m_didAccessInitialDocumentTimer; | 295 Timer<FrameLoader> m_didAccessInitialDocumentTimer; |
296 | 296 |
297 SandboxFlags m_forcedSandboxFlags; | 297 SandboxFlags m_forcedSandboxFlags; |
298 }; | 298 }; |
299 | 299 |
300 } // namespace WebCore | 300 } // namespace WebCore |
301 | 301 |
302 #endif // FrameLoader_h | 302 #endif // FrameLoader_h |
OLD | NEW |