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

Side by Side Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 531553002: Remove dead content sniffing code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | Source/core/fetch/ResourceLoader.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) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org)
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 printf("SCRIPTS: %d (%d hits, hit rate %d%%)\n", scripts, scripts - scri ptMisses, (scripts - scriptMisses) * 100 / scripts); 1507 printf("SCRIPTS: %d (%d hits, hit rate %d%%)\n", scripts, scripts - scri ptMisses, (scripts - scriptMisses) * 100 / scripts);
1508 if (stylesheets) 1508 if (stylesheets)
1509 printf("STYLESHEETS: %d (%d hits, hit rate %d%%)\n", stylesheets, styles heets - stylesheetMisses, (stylesheets - stylesheetMisses) * 100 / stylesheets); 1509 printf("STYLESHEETS: %d (%d hits, hit rate %d%%)\n", stylesheets, styles heets - stylesheetMisses, (stylesheets - stylesheetMisses) * 100 / stylesheets);
1510 if (images) 1510 if (images)
1511 printf("IMAGES: %d (%d hits, hit rate %d%%)\n", images, images - imageM isses, (images - imageMisses) * 100 / images); 1511 printf("IMAGES: %d (%d hits, hit rate %d%%)\n", images, images - imageM isses, (images - imageMisses) * 100 / images);
1512 } 1512 }
1513 #endif 1513 #endif
1514 1514
1515 const ResourceLoaderOptions& ResourceFetcher::defaultResourceOptions() 1515 const ResourceLoaderOptions& ResourceFetcher::defaultResourceOptions()
1516 { 1516 {
1517 DEFINE_STATIC_LOCAL(ResourceLoaderOptions, options, (SniffContent, BufferDat a, AllowStoredCredentials, ClientRequestedCredentials, CheckContentSecurityPolic y, DocumentContext)); 1517 DEFINE_STATIC_LOCAL(ResourceLoaderOptions, options, (BufferData, AllowStored Credentials, ClientRequestedCredentials, CheckContentSecurityPolicy, DocumentCon text));
1518 return options; 1518 return options;
1519 } 1519 }
1520 1520
1521 ResourceFetcher::DeadResourceStatsRecorder::DeadResourceStatsRecorder() 1521 ResourceFetcher::DeadResourceStatsRecorder::DeadResourceStatsRecorder()
1522 : m_useCount(0) 1522 : m_useCount(0)
1523 , m_revalidateCount(0) 1523 , m_revalidateCount(0)
1524 , m_loadCount(0) 1524 , m_loadCount(0)
1525 { 1525 {
1526 } 1526 }
1527 1527
(...skipping 25 matching lines...) Expand all
1553 1553
1554 void ResourceFetcher::trace(Visitor* visitor) 1554 void ResourceFetcher::trace(Visitor* visitor)
1555 { 1555 {
1556 visitor->trace(m_document); 1556 visitor->trace(m_document);
1557 visitor->trace(m_loaders); 1557 visitor->trace(m_loaders);
1558 visitor->trace(m_multipartLoaders); 1558 visitor->trace(m_multipartLoaders);
1559 ResourceLoaderHost::trace(visitor); 1559 ResourceLoaderHost::trace(visitor);
1560 } 1560 }
1561 1561
1562 } 1562 }
OLDNEW
« no previous file with comments | « no previous file | Source/core/fetch/ResourceLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698