Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 1389383003: WIP: Introduce CompressibleString Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto crrev.com/1564773002 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "core/page/ContextMenuController.h" 44 #include "core/page/ContextMenuController.h"
45 #include "core/page/DragController.h" 45 #include "core/page/DragController.h"
46 #include "core/page/FocusController.h" 46 #include "core/page/FocusController.h"
47 #include "core/page/PointerLockController.h" 47 #include "core/page/PointerLockController.h"
48 #include "core/page/ValidationMessageClient.h" 48 #include "core/page/ValidationMessageClient.h"
49 #include "core/page/scrolling/ScrollingCoordinator.h" 49 #include "core/page/scrolling/ScrollingCoordinator.h"
50 #include "core/paint/PaintLayer.h" 50 #include "core/paint/PaintLayer.h"
51 #include "platform/graphics/GraphicsLayer.h" 51 #include "platform/graphics/GraphicsLayer.h"
52 #include "platform/plugins/PluginData.h" 52 #include "platform/plugins/PluginData.h"
53 #include "public/platform/Platform.h" 53 #include "public/platform/Platform.h"
54 #include "wtf/text/CompressibleString.h"
54 55
55 namespace blink { 56 namespace blink {
56 57
57 // Set of all live pages; includes internal Page objects that are 58 // Set of all live pages; includes internal Page objects that are
58 // not observable from scripts. 59 // not observable from scripts.
59 static Page::PageSet& allPages() 60 static Page::PageSet& allPages()
60 { 61 {
61 DEFINE_STATIC_LOCAL(Page::PageSet, allPages, ()); 62 DEFINE_STATIC_LOCAL(Page::PageSet, allPages, ());
62 return allPages; 63 return allPages;
63 } 64 }
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 } 510 }
510 511
511 for (unsigned i = 0; i < frames.size(); ++i) 512 for (unsigned i = 0; i < frames.size(); ++i)
512 frames[i]->localDOMWindow()->acceptLanguagesChanged(); 513 frames[i]->localDOMWindow()->acceptLanguagesChanged();
513 } 514 }
514 515
515 void Page::purgeMemory(DeviceKind deviceKind) 516 void Page::purgeMemory(DeviceKind deviceKind)
516 { 517 {
517 if (deviceKind == DeviceKind::LowEnd) 518 if (deviceKind == DeviceKind::LowEnd)
518 memoryCache()->pruneAll(); 519 memoryCache()->pruneAll();
520 CompressibleStringImpl::purgeMemory();
519 } 521 }
520 522
521 DEFINE_TRACE(Page) 523 DEFINE_TRACE(Page)
522 { 524 {
523 #if ENABLE(OILPAN) 525 #if ENABLE(OILPAN)
524 visitor->trace(m_animator); 526 visitor->trace(m_animator);
525 visitor->trace(m_autoscrollController); 527 visitor->trace(m_autoscrollController);
526 visitor->trace(m_chromeClient); 528 visitor->trace(m_chromeClient);
527 visitor->trace(m_dragCaretController); 529 visitor->trace(m_dragCaretController);
528 visitor->trace(m_dragController); 530 visitor->trace(m_dragController);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 { 595 {
594 } 596 }
595 597
596 Page::PageClients::~PageClients() 598 Page::PageClients::~PageClients()
597 { 599 {
598 } 600 }
599 601
600 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; 602 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
601 603
602 } // namespace blink 604 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp ('k') | third_party/WebKit/Source/wtf/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698