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

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

Issue 19574002: Refactoring: Introduce ResouceLoaderHost interface for unloading ResourceLoader. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another attempt Created 7 years, 5 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
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // FIXME: It's unfortunate that the cache layer and below get to know anythi ng about fragment identifiers. 174 // FIXME: It's unfortunate that the cache layer and below get to know anythi ng about fragment identifiers.
175 // We should look into removing the expectation of that knowledge from the p latform network stacks. 175 // We should look into removing the expectation of that knowledge from the p latform network stacks.
176 ResourceRequest request(m_resourceRequest); 176 ResourceRequest request(m_resourceRequest);
177 if (!m_fragmentIdentifierForRequest.isNull()) { 177 if (!m_fragmentIdentifierForRequest.isNull()) {
178 KURL url = request.url(); 178 KURL url = request.url();
179 url.setFragmentIdentifier(m_fragmentIdentifierForRequest); 179 url.setFragmentIdentifier(m_fragmentIdentifierForRequest);
180 request.setURL(url); 180 request.setURL(url);
181 m_fragmentIdentifierForRequest = String(); 181 m_fragmentIdentifierForRequest = String();
182 } 182 }
183 183
184 m_loader = ResourceLoader::create(cachedResourceLoader->documentLoader(), th is, request, options); 184 m_loader = ResourceLoader::create(cachedResourceLoader, this, request, optio ns);
185 if (!m_loader) { 185 if (!m_loader) {
186 failBeforeStarting(); 186 failBeforeStarting();
187 return; 187 return;
188 } 188 }
189 m_status = Pending; 189 m_status = Pending;
190 } 190 }
191 191
192 void CachedResource::checkNotify() 192 void CachedResource::checkNotify()
193 { 193 {
194 if (isLoading()) 194 if (isLoading())
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 if (m_callbackTimer.isActive()) 817 if (m_callbackTimer.isActive())
818 m_callbackTimer.stop(); 818 m_callbackTimer.stop();
819 } 819 }
820 820
821 void CachedResource::CachedResourceCallback::timerFired(Timer<CachedResourceCall back>*) 821 void CachedResource::CachedResourceCallback::timerFired(Timer<CachedResourceCall back>*)
822 { 822 {
823 m_resource->didAddClient(m_client); 823 m_resource->didAddClient(m_client);
824 } 824 }
825 825
826 } 826 }
OLDNEW
« no previous file with comments | « Source/core/loader/ResourceLoaderHost.h ('k') | Source/core/loader/cache/CachedResourceLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698