| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 DifferentDocument, | 209 DifferentDocument, |
| 210 Fragment, | 210 Fragment, |
| 211 HistoryApi | 211 HistoryApi |
| 212 }; | 212 }; |
| 213 void setHistoryItemStateForCommit(HistoryCommitType, HistoryNavigationType); | 213 void setHistoryItemStateForCommit(HistoryCommitType, HistoryNavigationType); |
| 214 | 214 |
| 215 void loadInSameDocument(const KURL&, PassRefPtr<SerializedScriptValue> state
Object, FrameLoadType, HistoryLoadType, ClientRedirectPolicy); | 215 void loadInSameDocument(const KURL&, PassRefPtr<SerializedScriptValue> state
Object, FrameLoadType, HistoryLoadType, ClientRedirectPolicy); |
| 216 | 216 |
| 217 void scheduleCheckCompleted(); | 217 void scheduleCheckCompleted(); |
| 218 | 218 |
| 219 void detachDocumentLoader(RefPtrWillBeMember<DocumentLoader>&); | 219 void detachDocumentLoader(Member<DocumentLoader>&); |
| 220 | 220 |
| 221 RawPtrWillBeMember<LocalFrame> m_frame; | 221 Member<LocalFrame> m_frame; |
| 222 | 222 |
| 223 // 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 |
| 224 // header dependencies unless performance testing proves otherwise. | 224 // header dependencies unless performance testing proves otherwise. |
| 225 // 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. |
| 226 mutable FrameLoaderStateMachine m_stateMachine; | 226 mutable FrameLoaderStateMachine m_stateMachine; |
| 227 | 227 |
| 228 OwnPtrWillBeMember<ProgressTracker> m_progressTracker; | 228 Member<ProgressTracker> m_progressTracker; |
| 229 | 229 |
| 230 FrameLoadType m_loadType; | 230 FrameLoadType m_loadType; |
| 231 | 231 |
| 232 // Document loaders for the three phases of frame loading. Note that while | 232 // Document loaders for the three phases of frame loading. Note that while |
| 233 // a new request is being loaded, the old document loader may still be refer
enced. | 233 // a new request is being loaded, the old document loader may still be refer
enced. |
| 234 // E.g. while a new request is in the "policy" state, the old document loade
r may | 234 // E.g. while a new request is in the "policy" state, the old document loade
r may |
| 235 // be consulted in particular as it makes sense to imply certain settings on
the new loader. | 235 // be consulted in particular as it makes sense to imply certain settings on
the new loader. |
| 236 RefPtrWillBeMember<DocumentLoader> m_documentLoader; | 236 Member<DocumentLoader> m_documentLoader; |
| 237 RefPtrWillBeMember<DocumentLoader> m_provisionalDocumentLoader; | 237 Member<DocumentLoader> m_provisionalDocumentLoader; |
| 238 | 238 |
| 239 RefPtrWillBeMember<HistoryItem> m_currentItem; | 239 Member<HistoryItem> m_currentItem; |
| 240 RefPtrWillBeMember<HistoryItem> m_provisionalItem; | 240 Member<HistoryItem> m_provisionalItem; |
| 241 | 241 |
| 242 class DeferredHistoryLoad : public NoBaseWillBeGarbageCollectedFinalized<Def
erredHistoryLoad> { | 242 class DeferredHistoryLoad : public GarbageCollectedFinalized<DeferredHistory
Load> { |
| 243 WTF_MAKE_NONCOPYABLE(DeferredHistoryLoad); | 243 WTF_MAKE_NONCOPYABLE(DeferredHistoryLoad); |
| 244 public: | 244 public: |
| 245 static PassOwnPtrWillBeRawPtr<DeferredHistoryLoad> create(ResourceReques
t request, HistoryItem* item, FrameLoadType loadType, HistoryLoadType historyLoa
dType) | 245 static RawPtr<DeferredHistoryLoad> create(ResourceRequest request, Histo
ryItem* item, FrameLoadType loadType, HistoryLoadType historyLoadType) |
| 246 { | 246 { |
| 247 return adoptPtrWillBeNoop(new DeferredHistoryLoad(request, item, loa
dType, historyLoadType)); | 247 return new DeferredHistoryLoad(request, item, loadType, historyLoadT
ype); |
| 248 } | 248 } |
| 249 | 249 |
| 250 DeferredHistoryLoad(ResourceRequest request, HistoryItem* item, FrameLoa
dType loadType, | 250 DeferredHistoryLoad(ResourceRequest request, HistoryItem* item, FrameLoa
dType loadType, |
| 251 HistoryLoadType historyLoadType) | 251 HistoryLoadType historyLoadType) |
| 252 : m_request(request) | 252 : m_request(request) |
| 253 , m_item(item) | 253 , m_item(item) |
| 254 , m_loadType(loadType) | 254 , m_loadType(loadType) |
| 255 , m_historyLoadType(historyLoadType) | 255 , m_historyLoadType(historyLoadType) |
| 256 { | 256 { |
| 257 } | 257 } |
| 258 | 258 |
| 259 DEFINE_INLINE_TRACE() | 259 DEFINE_INLINE_TRACE() |
| 260 { | 260 { |
| 261 visitor->trace(m_item); | 261 visitor->trace(m_item); |
| 262 } | 262 } |
| 263 | 263 |
| 264 ResourceRequest m_request; | 264 ResourceRequest m_request; |
| 265 RefPtrWillBeMember<HistoryItem> m_item; | 265 Member<HistoryItem> m_item; |
| 266 FrameLoadType m_loadType; | 266 FrameLoadType m_loadType; |
| 267 HistoryLoadType m_historyLoadType; | 267 HistoryLoadType m_historyLoadType; |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 OwnPtrWillBeMember<DeferredHistoryLoad> m_deferredHistoryLoad; | 270 Member<DeferredHistoryLoad> m_deferredHistoryLoad; |
| 271 | 271 |
| 272 bool m_inStopAllLoaders; | 272 bool m_inStopAllLoaders; |
| 273 | 273 |
| 274 Timer<FrameLoader> m_checkTimer; | 274 Timer<FrameLoader> m_checkTimer; |
| 275 | 275 |
| 276 bool m_didAccessInitialDocument; | 276 bool m_didAccessInitialDocument; |
| 277 Timer<FrameLoader> m_didAccessInitialDocumentTimer; | 277 Timer<FrameLoader> m_didAccessInitialDocumentTimer; |
| 278 | 278 |
| 279 SandboxFlags m_forcedSandboxFlags; | 279 SandboxFlags m_forcedSandboxFlags; |
| 280 | 280 |
| 281 bool m_dispatchingDidClearWindowObjectInMainWorld; | 281 bool m_dispatchingDidClearWindowObjectInMainWorld; |
| 282 bool m_protectProvisionalLoader; | 282 bool m_protectProvisionalLoader; |
| 283 }; | 283 }; |
| 284 | 284 |
| 285 } // namespace blink | 285 } // namespace blink |
| 286 | 286 |
| 287 #endif // FrameLoader_h | 287 #endif // FrameLoader_h |
| OLD | NEW |