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

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

Issue 1417943002: Load the table of visited links from database file asynchronously. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add extra comment and fix compilation error. Created 5 years 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 void Page::setDeviceColorProfile(const Vector<char>& profile) 334 void Page::setDeviceColorProfile(const Vector<char>& profile)
335 { 335 {
336 // FIXME: implement. 336 // FIXME: implement.
337 } 337 }
338 338
339 void Page::resetDeviceColorProfileForTesting() 339 void Page::resetDeviceColorProfileForTesting()
340 { 340 {
341 RuntimeEnabledFeatures::setImageColorProfilesEnabled(false); 341 RuntimeEnabledFeatures::setImageColorProfilesEnabled(false);
342 } 342 }
343 343
344 void Page::allVisitedStateChanged() 344 void Page::allVisitedStateChanged(bool invalidateVisitedLinkHashes)
345 { 345 {
346 for (const Page* page : ordinaryPages()) { 346 for (const Page* page : ordinaryPages()) {
347 for (Frame* frame = page->m_mainFrame; frame; frame = frame->tree().trav erseNext()) { 347 for (Frame* frame = page->m_mainFrame; frame; frame = frame->tree().trav erseNext()) {
348 if (frame->isLocalFrame()) 348 if (frame->isLocalFrame())
349 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt yleForAllLinks(); 349 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt yleForAllLinks(invalidateVisitedLinkHashes);
350 } 350 }
351 } 351 }
352 } 352 }
353 353
354 void Page::visitedStateChanged(LinkHash linkHash) 354 void Page::visitedStateChanged(LinkHash linkHash)
355 { 355 {
356 for (const Page* page : ordinaryPages()) { 356 for (const Page* page : ordinaryPages()) {
357 for (Frame* frame = page->m_mainFrame; frame; frame = frame->tree().trav erseNext()) { 357 for (Frame* frame = page->m_mainFrame; frame; frame = frame->tree().trav erseNext()) {
358 if (frame->isLocalFrame()) 358 if (frame->isLocalFrame())
359 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt yleForLink(linkHash); 359 toLocalFrame(frame)->document()->visitedLinkState().invalidateSt yleForLink(linkHash);
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 { 592 {
593 } 593 }
594 594
595 Page::PageClients::~PageClients() 595 Page::PageClients::~PageClients()
596 { 596 {
597 } 597 }
598 598
599 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>; 599 template class CORE_TEMPLATE_EXPORT WillBeHeapSupplement<Page>;
600 600
601 } // namespace blink 601 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.h ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698