OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 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) 2009 Adam Barth. All rights reserved. | 5 * Copyright (C) 2009 Adam Barth. 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 14 matching lines...) Expand all Loading... |
25 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 25 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
26 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 26 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
27 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 #ifndef NavigationScheduler_h | 32 #ifndef NavigationScheduler_h |
33 #define NavigationScheduler_h | 33 #define NavigationScheduler_h |
34 | 34 |
| 35 #include <memory> |
35 #include "core/CoreExport.h" | 36 #include "core/CoreExport.h" |
36 #include "platform/WebTaskRunner.h" | 37 #include "platform/WebTaskRunner.h" |
37 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
38 #include "platform/weborigin/KURL.h" | 39 #include "platform/weborigin/KURL.h" |
39 #include "public/platform/WebScheduler.h" | 40 #include "public/platform/WebScheduler.h" |
40 #include "wtf/Forward.h" | 41 #include "wtf/Forward.h" |
41 #include "wtf/HashMap.h" | 42 #include "wtf/HashMap.h" |
42 #include "wtf/Noncopyable.h" | 43 #include "wtf/Noncopyable.h" |
43 #include "wtf/PassRefPtr.h" | 44 #include "wtf/PassRefPtr.h" |
44 #include "wtf/text/WTFString.h" | 45 #include "wtf/text/WTFString.h" |
45 #include <memory> | |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 | 48 |
49 class Document; | 49 class Document; |
50 class FormSubmission; | 50 class FormSubmission; |
51 class LocalFrame; | 51 class LocalFrame; |
52 class ScheduledNavigation; | 52 class ScheduledNavigation; |
53 | 53 |
54 class CORE_EXPORT NavigationScheduler final | 54 class CORE_EXPORT NavigationScheduler final |
55 : public GarbageCollectedFinalized<NavigationScheduler> { | 55 : public GarbageCollectedFinalized<NavigationScheduler> { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 } | 109 } |
110 static bool isNavigationAllowed() { return !s_navigationDisableCount; } | 110 static bool isNavigationAllowed() { return !s_navigationDisableCount; } |
111 | 111 |
112 private: | 112 private: |
113 static unsigned s_navigationDisableCount; | 113 static unsigned s_navigationDisableCount; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
117 | 117 |
118 #endif // NavigationScheduler_h | 118 #endif // NavigationScheduler_h |
OLD | NEW |