OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
5 * (http://www.torchmobile.com/) | 5 * (http://www.torchmobile.com/) |
6 * Copyright (C) 2009 Adam Barth. All rights reserved. | 6 * Copyright (C) 2009 Adam Barth. 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 14 matching lines...) Expand all Loading... |
25 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 25 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
28 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 28 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
31 */ | 31 */ |
32 | 32 |
33 #include "core/loader/NavigationScheduler.h" | 33 #include "core/loader/NavigationScheduler.h" |
34 | 34 |
| 35 #include <memory> |
35 #include "bindings/core/v8/ScriptController.h" | 36 #include "bindings/core/v8/ScriptController.h" |
36 #include "core/events/Event.h" | 37 #include "core/events/Event.h" |
37 #include "core/frame/Deprecation.h" | 38 #include "core/frame/Deprecation.h" |
38 #include "core/frame/LocalFrame.h" | 39 #include "core/frame/LocalFrame.h" |
39 #include "core/frame/csp/ContentSecurityPolicy.h" | 40 #include "core/frame/csp/ContentSecurityPolicy.h" |
40 #include "core/html/HTMLFormElement.h" | 41 #include "core/html/HTMLFormElement.h" |
41 #include "core/inspector/InspectorInstrumentation.h" | 42 #include "core/inspector/InspectorInstrumentation.h" |
42 #include "core/loader/DocumentLoadTiming.h" | 43 #include "core/loader/DocumentLoadTiming.h" |
43 #include "core/loader/DocumentLoader.h" | 44 #include "core/loader/DocumentLoader.h" |
44 #include "core/loader/FormSubmission.h" | 45 #include "core/loader/FormSubmission.h" |
45 #include "core/loader/FrameLoadRequest.h" | 46 #include "core/loader/FrameLoadRequest.h" |
46 #include "core/loader/FrameLoader.h" | 47 #include "core/loader/FrameLoader.h" |
47 #include "core/loader/FrameLoaderClient.h" | 48 #include "core/loader/FrameLoaderClient.h" |
48 #include "core/loader/FrameLoaderStateMachine.h" | 49 #include "core/loader/FrameLoaderStateMachine.h" |
49 #include "core/page/Page.h" | 50 #include "core/page/Page.h" |
50 #include "platform/Histogram.h" | 51 #include "platform/Histogram.h" |
51 #include "platform/SharedBuffer.h" | 52 #include "platform/SharedBuffer.h" |
52 #include "platform/UserGestureIndicator.h" | 53 #include "platform/UserGestureIndicator.h" |
53 #include "platform/loader/fetch/ResourceLoaderOptions.h" | 54 #include "platform/loader/fetch/ResourceLoaderOptions.h" |
54 #include "public/platform/Platform.h" | 55 #include "public/platform/Platform.h" |
55 #include "public/platform/WebCachePolicy.h" | 56 #include "public/platform/WebCachePolicy.h" |
56 #include "public/platform/WebScheduler.h" | 57 #include "public/platform/WebScheduler.h" |
57 #include "wtf/CurrentTime.h" | 58 #include "wtf/CurrentTime.h" |
58 #include "wtf/PtrUtil.h" | 59 #include "wtf/PtrUtil.h" |
59 #include <memory> | |
60 | 60 |
61 namespace blink { | 61 namespace blink { |
62 | 62 |
63 namespace { | 63 namespace { |
64 | 64 |
65 // Add new scheduled navigation types before ScheduledLastEntry | 65 // Add new scheduled navigation types before ScheduledLastEntry |
66 enum ScheduledNavigationType { | 66 enum ScheduledNavigationType { |
67 ScheduledReload, | 67 ScheduledReload, |
68 ScheduledFormSubmission, | 68 ScheduledFormSubmission, |
69 ScheduledURLNavigation, | 69 ScheduledURLNavigation, |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 m_navigateTaskHandle.cancel(); | 541 m_navigateTaskHandle.cancel(); |
542 m_redirect.clear(); | 542 m_redirect.clear(); |
543 } | 543 } |
544 | 544 |
545 DEFINE_TRACE(NavigationScheduler) { | 545 DEFINE_TRACE(NavigationScheduler) { |
546 visitor->trace(m_frame); | 546 visitor->trace(m_frame); |
547 visitor->trace(m_redirect); | 547 visitor->trace(m_redirect); |
548 } | 548 } |
549 | 549 |
550 } // namespace blink | 550 } // namespace blink |
OLD | NEW |