OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All |
3 * Rights Reserved. | 3 * Rights Reserved. |
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
5 * (http://www.torchmobile.com/) | 5 * (http://www.torchmobile.com/) |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #include "platform/graphics/GraphicsLayer.h" | 56 #include "platform/graphics/GraphicsLayer.h" |
57 #include "platform/loader/fetch/ResourceFetcher.h" | 57 #include "platform/loader/fetch/ResourceFetcher.h" |
58 #include "platform/plugins/PluginData.h" | 58 #include "platform/plugins/PluginData.h" |
59 #include "public/platform/Platform.h" | 59 #include "public/platform/Platform.h" |
60 | 60 |
61 namespace blink { | 61 namespace blink { |
62 | 62 |
63 // Set of all live pages; includes internal Page objects that are | 63 // Set of all live pages; includes internal Page objects that are |
64 // not observable from scripts. | 64 // not observable from scripts. |
65 static Page::PageSet& allPages() { | 65 static Page::PageSet& allPages() { |
| 66 ALLOW_UNSAFE_SINGLETON() |
66 DEFINE_STATIC_LOCAL(Page::PageSet, pages, ()); | 67 DEFINE_STATIC_LOCAL(Page::PageSet, pages, ()); |
67 return pages; | 68 return pages; |
68 } | 69 } |
69 | 70 |
70 Page::PageSet& Page::ordinaryPages() { | 71 Page::PageSet& Page::ordinaryPages() { |
| 72 ALLOW_UNSAFE_SINGLETON() |
71 DEFINE_STATIC_LOCAL(Page::PageSet, pages, ()); | 73 DEFINE_STATIC_LOCAL(Page::PageSet, pages, ()); |
72 return pages; | 74 return pages; |
73 } | 75 } |
74 | 76 |
75 void Page::networkStateChanged(bool online) { | 77 void Page::networkStateChanged(bool online) { |
76 HeapVector<Member<LocalFrame>> frames; | 78 HeapVector<Member<LocalFrame>> frames; |
77 | 79 |
78 // Get all the frames of all the pages in all the page groups | 80 // Get all the frames of all the pages in all the page groups |
79 for (Page* page : allPages()) { | 81 for (Page* page : allPages()) { |
80 for (Frame* frame = page->mainFrame(); frame; | 82 for (Frame* frame = page->mainFrame(); frame; |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 : chromeClient(nullptr), | 544 : chromeClient(nullptr), |
543 contextMenuClient(nullptr), | 545 contextMenuClient(nullptr), |
544 editorClient(nullptr), | 546 editorClient(nullptr), |
545 spellCheckerClient(nullptr) {} | 547 spellCheckerClient(nullptr) {} |
546 | 548 |
547 Page::PageClients::~PageClients() {} | 549 Page::PageClients::~PageClients() {} |
548 | 550 |
549 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 551 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
550 | 552 |
551 } // namespace blink | 553 } // namespace blink |
OLD | NEW |