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" | |
46 #include "platform/heap/Handle.h" | 45 #include "platform/heap/Handle.h" |
47 #include "platform/instrumentation/tracing/TracedValue.h" | 46 #include "platform/instrumentation/tracing/TracedValue.h" |
48 #include "platform/loader/fetch/ResourceLoaderOptions.h" | 47 #include "platform/loader/fetch/ResourceLoaderOptions.h" |
49 #include "platform/loader/fetch/ResourceRequest.h" | 48 #include "platform/loader/fetch/ResourceRequest.h" |
50 #include "platform/wtf/Forward.h" | 49 #include "platform/wtf/Forward.h" |
51 #include "platform/wtf/HashSet.h" | 50 #include "platform/wtf/HashSet.h" |
52 #include "public/platform/WebInsecureRequestPolicy.h" | 51 #include "public/platform/WebInsecureRequestPolicy.h" |
53 | 52 |
54 #include <memory> | 53 #include <memory> |
55 | 54 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // while the client handles the navigation. | 219 // while the client handles the navigation. |
221 bool HasProvisionalNavigation() const { return ProvisionalDocumentLoader(); } | 220 bool HasProvisionalNavigation() const { return ProvisionalDocumentLoader(); } |
222 | 221 |
223 void DetachProvisionalDocumentLoader(DocumentLoader*); | 222 void DetachProvisionalDocumentLoader(DocumentLoader*); |
224 | 223 |
225 DECLARE_TRACE(); | 224 DECLARE_TRACE(); |
226 | 225 |
227 static void SetReferrerForFrameRequest(FrameLoadRequest&); | 226 static void SetReferrerForFrameRequest(FrameLoadRequest&); |
228 | 227 |
229 private: | 228 private: |
230 void CheckTimerFired(TimerBase*); | |
231 | |
232 bool PrepareRequestForThisFrame(FrameLoadRequest&); | 229 bool PrepareRequestForThisFrame(FrameLoadRequest&); |
233 FrameLoadType DetermineFrameLoadType(const FrameLoadRequest&); | 230 FrameLoadType DetermineFrameLoadType(const FrameLoadRequest&); |
234 | 231 |
235 SubstituteData DefaultSubstituteDataForURL(const KURL&); | 232 SubstituteData DefaultSubstituteDataForURL(const KURL&); |
236 | 233 |
237 bool ShouldPerformFragmentNavigation(bool is_form_submission, | 234 bool ShouldPerformFragmentNavigation(bool is_form_submission, |
238 const String& http_method, | 235 const String& http_method, |
239 FrameLoadType, | 236 FrameLoadType, |
240 const KURL&); | 237 const KURL&); |
241 void ProcessFragment(const KURL&, FrameLoadType, LoadStartType); | 238 void ProcessFragment(const KURL&, FrameLoadType, LoadStartType); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // Document loaders for the three phases of frame loading. Note that while a | 281 // Document loaders for the three phases of frame loading. Note that while a |
285 // new request is being loaded, the old document loader may still be | 282 // new request is being loaded, the old document loader may still be |
286 // referenced. E.g. while a new request is in the "policy" state, the old | 283 // referenced. E.g. while a new request is in the "policy" state, the old |
287 // document loader may be consulted in particular as it makes sense to imply | 284 // document loader may be consulted in particular as it makes sense to imply |
288 // certain settings on the new loader. | 285 // certain settings on the new loader. |
289 Member<DocumentLoader> document_loader_; | 286 Member<DocumentLoader> document_loader_; |
290 Member<DocumentLoader> provisional_document_loader_; | 287 Member<DocumentLoader> provisional_document_loader_; |
291 | 288 |
292 bool in_stop_all_loaders_; | 289 bool in_stop_all_loaders_; |
293 | 290 |
294 TaskRunnerTimer<FrameLoader> check_timer_; | |
295 | |
296 SandboxFlags forced_sandbox_flags_; | 291 SandboxFlags forced_sandbox_flags_; |
297 | 292 |
298 bool dispatching_did_clear_window_object_in_main_world_; | 293 bool dispatching_did_clear_window_object_in_main_world_; |
299 bool protect_provisional_loader_; | 294 bool protect_provisional_loader_; |
300 bool detached_; | 295 bool detached_; |
301 }; | 296 }; |
302 | 297 |
303 } // namespace blink | 298 } // namespace blink |
304 | 299 |
305 #endif // FrameLoader_h | 300 #endif // FrameLoader_h |
OLD | NEW |