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

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

Issue 1303203002: Add MemoryPurgeController (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/platform/MemoryPurgeController.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 visitor->trace(m_contextMenuController); 553 visitor->trace(m_contextMenuController);
554 visitor->trace(m_pointerLockController); 554 visitor->trace(m_pointerLockController);
555 visitor->trace(m_scrollingCoordinator); 555 visitor->trace(m_scrollingCoordinator);
556 visitor->trace(m_undoStack); 556 visitor->trace(m_undoStack);
557 visitor->trace(m_mainFrame); 557 visitor->trace(m_mainFrame);
558 visitor->trace(m_validationMessageClient); 558 visitor->trace(m_validationMessageClient);
559 visitor->trace(m_multisamplingChangedObservers); 559 visitor->trace(m_multisamplingChangedObservers);
560 visitor->trace(m_frameHost); 560 visitor->trace(m_frameHost);
561 HeapSupplementable<Page>::trace(visitor); 561 HeapSupplementable<Page>::trace(visitor);
562 #endif 562 #endif
563 visitor->trace(m_memoryPurgeController);
563 PageLifecycleNotifier::trace(visitor); 564 PageLifecycleNotifier::trace(visitor);
564 } 565 }
565 566
566 void Page::willBeDestroyed() 567 void Page::willBeDestroyed()
567 { 568 {
568 RefPtrWillBeRawPtr<Frame> mainFrame = m_mainFrame; 569 RefPtrWillBeRawPtr<Frame> mainFrame = m_mainFrame;
569 570
570 mainFrame->detach(FrameDetachType::Remove); 571 mainFrame->detach(FrameDetachType::Remove);
571 572
572 if (mainFrame->isLocalFrame()) { 573 if (mainFrame->isLocalFrame()) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 { 605 {
605 } 606 }
606 607
607 Page::PageClients::~PageClients() 608 Page::PageClients::~PageClients()
608 { 609 {
609 } 610 }
610 611
611 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; 612 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
612 613
613 } // namespace blink 614 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/page/Page.h ('k') | Source/platform/MemoryPurgeController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698