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

Side by Side Diff: Source/WebCore/loader/cache/CachedResource.cpp

Issue 8588025: Merge 99565 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 1 month 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 | « Source/WebCore/loader/cache/CachedResource.h ('k') | no next file » | 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) 2006 Samuel Weinig (sam.weinig@gmail.com) 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 , m_lruIndex(0) 104 , m_lruIndex(0)
105 #endif 105 #endif
106 , m_nextInAllResourcesList(0) 106 , m_nextInAllResourcesList(0)
107 , m_prevInAllResourcesList(0) 107 , m_prevInAllResourcesList(0)
108 , m_nextInLiveResourcesList(0) 108 , m_nextInLiveResourcesList(0)
109 , m_prevInLiveResourcesList(0) 109 , m_prevInLiveResourcesList(0)
110 , m_owningCachedResourceLoader(0) 110 , m_owningCachedResourceLoader(0)
111 , m_resourceToRevalidate(0) 111 , m_resourceToRevalidate(0)
112 , m_proxyResource(0) 112 , m_proxyResource(0)
113 { 113 {
114 ASSERT(m_type == unsigned(type)); // m_type is a bitfield, so this tests car eless updates of the enum.
114 #ifndef NDEBUG 115 #ifndef NDEBUG
115 cachedResourceLeakCounter.increment(); 116 cachedResourceLeakCounter.increment();
116 #endif 117 #endif
117 } 118 }
118 119
119 CachedResource::~CachedResource() 120 CachedResource::~CachedResource()
120 { 121 {
121 ASSERT(!m_resourceToRevalidate); // Should be true because canDelete() check s this. 122 ASSERT(!m_resourceToRevalidate); // Should be true because canDelete() check s this.
122 ASSERT(canDelete()); 123 ASSERT(canDelete());
123 ASSERT(!inCache()); 124 ASSERT(!inCache());
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 } 625 }
625 626
626 void CachedResource::setLoadPriority(ResourceLoadPriority loadPriority) 627 void CachedResource::setLoadPriority(ResourceLoadPriority loadPriority)
627 { 628 {
628 if (loadPriority == ResourceLoadPriorityUnresolved) 629 if (loadPriority == ResourceLoadPriorityUnresolved)
629 return; 630 return;
630 m_loadPriority = loadPriority; 631 m_loadPriority = loadPriority;
631 } 632 }
632 633
633 } 634 }
OLDNEW
« no previous file with comments | « Source/WebCore/loader/cache/CachedResource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698