| OLD | NEW | 
|---|
| 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) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 
     rights reserved. | 4     Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 
     rights reserved. | 
| 5     Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ | 5     Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ | 
| 6 | 6 | 
| 7     This library is free software; you can redistribute it and/or | 7     This library is free software; you can redistribute it and/or | 
| 8     modify it under the terms of the GNU Library General Public | 8     modify it under the terms of the GNU Library General Public | 
| 9     License as published by the Free Software Foundation; either | 9     License as published by the Free Software Foundation; either | 
| 10     version 2 of the License, or (at your option) any later version. | 10     version 2 of the License, or (at your option) any later version. | 
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 154     virtual void didDownloadData(const Resource*, int dataLength, int encodedDat
     aLength) OVERRIDE; | 154     virtual void didDownloadData(const Resource*, int dataLength, int encodedDat
     aLength) OVERRIDE; | 
| 155     virtual void subresourceLoaderFinishedLoadingOnePart(ResourceLoader*) OVERRI
     DE; | 155     virtual void subresourceLoaderFinishedLoadingOnePart(ResourceLoader*) OVERRI
     DE; | 
| 156     virtual void didInitializeResourceLoader(ResourceLoader*) OVERRIDE; | 156     virtual void didInitializeResourceLoader(ResourceLoader*) OVERRIDE; | 
| 157     virtual void willTerminateResourceLoader(ResourceLoader*) OVERRIDE; | 157     virtual void willTerminateResourceLoader(ResourceLoader*) OVERRIDE; | 
| 158     virtual void willStartLoadingResource(ResourceRequest&) OVERRIDE; | 158     virtual void willStartLoadingResource(ResourceRequest&) OVERRIDE; | 
| 159     virtual bool defersLoading() const OVERRIDE; | 159     virtual bool defersLoading() const OVERRIDE; | 
| 160     virtual bool isLoadedBy(ResourceLoaderHost*) const OVERRIDE; | 160     virtual bool isLoadedBy(ResourceLoaderHost*) const OVERRIDE; | 
| 161     virtual bool shouldRequest(Resource*, const ResourceRequest&, const Resource
     LoaderOptions&) OVERRIDE; | 161     virtual bool shouldRequest(Resource*, const ResourceRequest&, const Resource
     LoaderOptions&) OVERRIDE; | 
| 162     virtual void refResourceLoaderHost() OVERRIDE; | 162     virtual void refResourceLoaderHost() OVERRIDE; | 
| 163     virtual void derefResourceLoaderHost() OVERRIDE; | 163     virtual void derefResourceLoaderHost() OVERRIDE; | 
|  | 164     virtual void didRequestStartForFrame() OVERRIDE; | 
|  | 165 | 
| 164 | 166 | 
| 165     static const ResourceLoaderOptions& defaultResourceOptions(); | 167     static const ResourceLoaderOptions& defaultResourceOptions(); | 
| 166 private: | 168 private: | 
| 167 | 169 | 
| 168     explicit ResourceFetcher(DocumentLoader*); | 170     explicit ResourceFetcher(DocumentLoader*); | 
| 169 | 171 | 
| 170     bool shouldLoadNewResource(Resource::Type) const; | 172     bool shouldLoadNewResource(Resource::Type) const; | 
| 171 | 173 | 
| 172     ResourcePtr<Resource> requestResource(Resource::Type, FetchRequest&); | 174     ResourcePtr<Resource> requestResource(Resource::Type, FetchRequest&); | 
| 173     ResourcePtr<Resource> revalidateResource(const FetchRequest&, Resource*); | 175     ResourcePtr<Resource> revalidateResource(const FetchRequest&, Resource*); | 
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 245             m_loader->m_allowStaleResources = m_previousState; | 247             m_loader->m_allowStaleResources = m_previousState; | 
| 246     } | 248     } | 
| 247 private: | 249 private: | 
| 248     ResourceFetcher* m_loader; | 250     ResourceFetcher* m_loader; | 
| 249     bool m_previousState; | 251     bool m_previousState; | 
| 250 }; | 252 }; | 
| 251 | 253 | 
| 252 } // namespace WebCore | 254 } // namespace WebCore | 
| 253 | 255 | 
| 254 #endif | 256 #endif | 
| OLD | NEW | 
|---|