OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. |
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 * Library General Public License for more details. | 12 * Library General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU Library General Public License | 14 * You should have received a copy of the GNU Library General Public License |
15 * along with this library; see the file COPYING.LIB. If not, write to | 15 * along with this library; see the file COPYING.LIB. If not, write to |
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 * Boston, MA 02110-1301, USA. | 17 * Boston, MA 02110-1301, USA. |
18 */ | 18 */ |
19 | 19 |
20 #include "config.h" | 20 #include "config.h" |
21 #include "core/page/Page.h" | 21 #include "core/page/Page.h" |
22 | 22 |
23 #include "bindings/v8/ScriptController.h" | |
24 #include "core/dom/ClientRectList.h" | 23 #include "core/dom/ClientRectList.h" |
25 #include "core/dom/DocumentMarkerController.h" | 24 #include "core/dom/DocumentMarkerController.h" |
26 #include "core/dom/DocumentStyleSheetCollection.h" | 25 #include "core/dom/DocumentStyleSheetCollection.h" |
27 #include "core/dom/Event.h" | 26 #include "core/dom/Event.h" |
28 #include "core/dom/EventNames.h" | 27 #include "core/dom/EventNames.h" |
29 #include "core/dom/ExceptionCode.h" | |
30 #include "core/dom/ExceptionCodePlaceholder.h" | |
31 #include "core/dom/VisitedLinkState.h" | 28 #include "core/dom/VisitedLinkState.h" |
32 #include "core/dom/WebCoreMemoryInstrumentation.h" | 29 #include "core/dom/WebCoreMemoryInstrumentation.h" |
33 #include "core/editing/Editor.h" | 30 #include "core/editing/Editor.h" |
34 #include "core/history/BackForwardController.h" | 31 #include "core/history/BackForwardController.h" |
35 #include "core/history/HistoryItem.h" | 32 #include "core/history/HistoryItem.h" |
36 #include "core/html/HTMLElement.h" | |
37 #include "core/html/VoidCallback.h" | |
38 #include "core/inspector/InspectorController.h" | 33 #include "core/inspector/InspectorController.h" |
39 #include "core/inspector/InspectorInstrumentation.h" | 34 #include "core/inspector/InspectorInstrumentation.h" |
40 #include "core/loader/FrameLoader.h" | 35 #include "core/loader/FrameLoader.h" |
41 #include "core/loader/FrameLoaderClient.h" | |
42 #include "core/loader/ProgressTracker.h" | 36 #include "core/loader/ProgressTracker.h" |
43 #include "core/loader/TextResourceDecoder.h" | |
44 #include "core/page/AutoscrollController.h" | 37 #include "core/page/AutoscrollController.h" |
45 #include "core/page/Chrome.h" | 38 #include "core/page/Chrome.h" |
46 #include "core/page/ChromeClient.h" | |
47 #include "core/page/ContextMenuClient.h" | |
48 #include "core/page/ContextMenuController.h" | 39 #include "core/page/ContextMenuController.h" |
49 #include "core/page/DOMTimer.h" | 40 #include "core/page/DOMTimer.h" |
50 #include "core/page/DOMWindow.h" | |
51 #include "core/page/DragController.h" | 41 #include "core/page/DragController.h" |
52 #include "core/page/EditorClient.h" | |
53 #include "core/page/FocusController.h" | 42 #include "core/page/FocusController.h" |
54 #include "core/page/Frame.h" | 43 #include "core/page/Frame.h" |
55 #include "core/page/FrameTree.h" | 44 #include "core/page/FrameTree.h" |
56 #include "core/page/FrameView.h" | 45 #include "core/page/FrameView.h" |
57 #include "core/page/Navigator.h" | |
58 #include "core/page/PageConsole.h" | 46 #include "core/page/PageConsole.h" |
59 #include "core/page/PageGroup.h" | 47 #include "core/page/PageGroup.h" |
60 #include "core/page/PointerLockController.h" | 48 #include "core/page/PointerLockController.h" |
61 #include "RuntimeEnabledFeatures.h" | |
62 #include "core/page/Settings.h" | 49 #include "core/page/Settings.h" |
63 #include "core/page/animation/AnimationController.h" | |
64 #include "core/page/scrolling/ScrollingCoordinator.h" | 50 #include "core/page/scrolling/ScrollingCoordinator.h" |
65 #include "core/platform/FileSystem.h" | |
66 #include "core/platform/Logging.h" | |
67 #include "core/platform/SharedBuffer.h" | |
68 #include "core/platform/Widget.h" | |
69 #include "core/platform/network/NetworkStateNotifier.h" | 51 #include "core/platform/network/NetworkStateNotifier.h" |
70 #include "core/plugins/PluginData.h" | 52 #include "core/plugins/PluginData.h" |
71 #include "core/rendering/RenderArena.h" | 53 #include "core/rendering/RenderArena.h" |
72 #include "core/rendering/RenderTheme.h" | 54 #include "core/rendering/RenderTheme.h" |
73 #include "core/rendering/RenderView.h" | 55 #include "core/rendering/RenderView.h" |
74 #include "core/rendering/RenderWidget.h" | |
75 #include "core/storage/StorageArea.h" | |
76 #include "core/storage/StorageNamespace.h" | 56 #include "core/storage/StorageNamespace.h" |
77 #include "weborigin/SchemeRegistry.h" | |
78 #include "wtf/HashMap.h" | 57 #include "wtf/HashMap.h" |
79 #include "wtf/RefCountedLeakCounter.h" | 58 #include "wtf/RefCountedLeakCounter.h" |
80 #include "wtf/StdLibExtras.h" | 59 #include "wtf/StdLibExtras.h" |
81 #include "wtf/text/Base64.h" | 60 #include "wtf/text/Base64.h" |
82 #include "wtf/text/StringHash.h" | |
83 | 61 |
84 namespace WebCore { | 62 namespace WebCore { |
85 | 63 |
86 static HashSet<Page*>* allPages; | 64 static HashSet<Page*>* allPages; |
87 | 65 |
88 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, pageCounter, ("Page")); | 66 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, pageCounter, ("Page")); |
89 | 67 |
90 static void networkStateChanged() | 68 static void networkStateChanged() |
91 { | 69 { |
92 Vector<RefPtr<Frame> > frames; | 70 Vector<RefPtr<Frame> > frames; |
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 , dragClient(0) | 845 , dragClient(0) |
868 , inspectorClient(0) | 846 , inspectorClient(0) |
869 { | 847 { |
870 } | 848 } |
871 | 849 |
872 Page::PageClients::~PageClients() | 850 Page::PageClients::~PageClients() |
873 { | 851 { |
874 } | 852 } |
875 | 853 |
876 } // namespace WebCore | 854 } // namespace WebCore |
OLD | NEW |