| 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. | 3 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 4 * (http://www.torchmobile.com/) | 4 * (http://www.torchmobile.com/) |
| 5 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
| 6 * Copyright (C) 2011 Google Inc. All rights reserved. | 6 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 #include "core/CoreExport.h" | 36 #include "core/CoreExport.h" |
| 37 #include "core/dom/IconURL.h" | 37 #include "core/dom/IconURL.h" |
| 38 #include "core/dom/SandboxFlags.h" | 38 #include "core/dom/SandboxFlags.h" |
| 39 #include "core/dom/SecurityContext.h" | 39 #include "core/dom/SecurityContext.h" |
| 40 #include "core/frame/FrameTypes.h" | 40 #include "core/frame/FrameTypes.h" |
| 41 #include "core/loader/FrameLoaderStateMachine.h" | 41 #include "core/loader/FrameLoaderStateMachine.h" |
| 42 #include "core/loader/FrameLoaderTypes.h" | 42 #include "core/loader/FrameLoaderTypes.h" |
| 43 #include "core/loader/HistoryItem.h" | 43 #include "core/loader/HistoryItem.h" |
| 44 #include "core/loader/NavigationPolicy.h" | 44 #include "core/loader/NavigationPolicy.h" |
| 45 #include "platform/Timer.h" |
| 45 #include "platform/heap/Handle.h" | 46 #include "platform/heap/Handle.h" |
| 46 #include "platform/instrumentation/tracing/TracedValue.h" | 47 #include "platform/instrumentation/tracing/TracedValue.h" |
| 47 #include "platform/loader/fetch/ResourceLoaderOptions.h" | 48 #include "platform/loader/fetch/ResourceLoaderOptions.h" |
| 48 #include "platform/loader/fetch/ResourceRequest.h" | 49 #include "platform/loader/fetch/ResourceRequest.h" |
| 49 #include "platform/wtf/Forward.h" | 50 #include "platform/wtf/Forward.h" |
| 50 #include "platform/wtf/HashSet.h" | 51 #include "platform/wtf/HashSet.h" |
| 51 #include "public/platform/WebInsecureRequestPolicy.h" | 52 #include "public/platform/WebInsecureRequestPolicy.h" |
| 52 | 53 |
| 53 #include <memory> | 54 #include <memory> |
| 54 | 55 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // while the client handles the navigation. | 220 // while the client handles the navigation. |
| 220 bool HasProvisionalNavigation() const { return ProvisionalDocumentLoader(); } | 221 bool HasProvisionalNavigation() const { return ProvisionalDocumentLoader(); } |
| 221 | 222 |
| 222 void DetachProvisionalDocumentLoader(DocumentLoader*); | 223 void DetachProvisionalDocumentLoader(DocumentLoader*); |
| 223 | 224 |
| 224 DECLARE_TRACE(); | 225 DECLARE_TRACE(); |
| 225 | 226 |
| 226 static void SetReferrerForFrameRequest(FrameLoadRequest&); | 227 static void SetReferrerForFrameRequest(FrameLoadRequest&); |
| 227 | 228 |
| 228 private: | 229 private: |
| 230 void CheckTimerFired(TimerBase*); |
| 231 |
| 229 bool PrepareRequestForThisFrame(FrameLoadRequest&); | 232 bool PrepareRequestForThisFrame(FrameLoadRequest&); |
| 230 FrameLoadType DetermineFrameLoadType(const FrameLoadRequest&); | 233 FrameLoadType DetermineFrameLoadType(const FrameLoadRequest&); |
| 231 | 234 |
| 232 SubstituteData DefaultSubstituteDataForURL(const KURL&); | 235 SubstituteData DefaultSubstituteDataForURL(const KURL&); |
| 233 | 236 |
| 234 bool ShouldPerformFragmentNavigation(bool is_form_submission, | 237 bool ShouldPerformFragmentNavigation(bool is_form_submission, |
| 235 const String& http_method, | 238 const String& http_method, |
| 236 FrameLoadType, | 239 FrameLoadType, |
| 237 const KURL&); | 240 const KURL&); |
| 238 void ProcessFragment(const KURL&, FrameLoadType, LoadStartType); | 241 void ProcessFragment(const KURL&, FrameLoadType, LoadStartType); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // Document loaders for the three phases of frame loading. Note that while a | 284 // Document loaders for the three phases of frame loading. Note that while a |
| 282 // new request is being loaded, the old document loader may still be | 285 // new request is being loaded, the old document loader may still be |
| 283 // referenced. E.g. while a new request is in the "policy" state, the old | 286 // referenced. E.g. while a new request is in the "policy" state, the old |
| 284 // document loader may be consulted in particular as it makes sense to imply | 287 // document loader may be consulted in particular as it makes sense to imply |
| 285 // certain settings on the new loader. | 288 // certain settings on the new loader. |
| 286 Member<DocumentLoader> document_loader_; | 289 Member<DocumentLoader> document_loader_; |
| 287 Member<DocumentLoader> provisional_document_loader_; | 290 Member<DocumentLoader> provisional_document_loader_; |
| 288 | 291 |
| 289 bool in_stop_all_loaders_; | 292 bool in_stop_all_loaders_; |
| 290 | 293 |
| 294 TaskRunnerTimer<FrameLoader> check_timer_; |
| 295 |
| 291 SandboxFlags forced_sandbox_flags_; | 296 SandboxFlags forced_sandbox_flags_; |
| 292 | 297 |
| 293 bool dispatching_did_clear_window_object_in_main_world_; | 298 bool dispatching_did_clear_window_object_in_main_world_; |
| 294 bool protect_provisional_loader_; | 299 bool protect_provisional_loader_; |
| 295 bool detached_; | 300 bool detached_; |
| 296 }; | 301 }; |
| 297 | 302 |
| 298 } // namespace blink | 303 } // namespace blink |
| 299 | 304 |
| 300 #endif // FrameLoader_h | 305 #endif // FrameLoader_h |
| OLD | NEW |