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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 void incrementRequestCount(const CachedResource*); | 118 void incrementRequestCount(const CachedResource*); |
119 void decrementRequestCount(const CachedResource*); | 119 void decrementRequestCount(const CachedResource*); |
120 int requestCount() const { return m_requestCount; } | 120 int requestCount() const { return m_requestCount; } |
121 | 121 |
122 bool isPreloaded(const String& urlString) const; | 122 bool isPreloaded(const String& urlString) const; |
123 void clearPreloads(); | 123 void clearPreloads(); |
124 void clearPendingPreloads(); | 124 void clearPendingPreloads(); |
125 void preload(CachedResource::Type, CachedResourceRequest&, const String& cha rset); | 125 void preload(CachedResource::Type, CachedResourceRequest&, const String& cha rset); |
126 void checkForPendingPreloads(); | 126 void checkForPendingPreloads(); |
127 void printPreloadStats(); | 127 void printPreloadStats(); |
128 bool canRequest(CachedResource::Type, const KURL&, bool forPreload = false); | 128 bool canRequest(CachedResource::Type, const KURL&, PassRefPtr<Element> initi atorElement, bool forPreload = false); |
abarth-chromium
2013/05/14 21:11:08
PassRefPtr<Element> -> Element*
We only need
jww
2013/05/14 22:55:30
Done.
| |
129 | 129 |
130 void reportMemoryUsage(MemoryObjectInfo*) const; | 130 void reportMemoryUsage(MemoryObjectInfo*) const; |
131 | 131 |
132 static const ResourceLoaderOptions& defaultCachedResourceOptions(); | 132 static const ResourceLoaderOptions& defaultCachedResourceOptions(); |
133 | 133 |
134 private: | 134 private: |
135 explicit CachedResourceLoader(DocumentLoader*); | 135 explicit CachedResourceLoader(DocumentLoader*); |
136 | 136 |
137 CachedResourceHandle<CachedResource> requestResource(CachedResource::Type, C achedResourceRequest&); | 137 CachedResourceHandle<CachedResource> requestResource(CachedResource::Type, C achedResourceRequest&); |
138 CachedResourceHandle<CachedResource> revalidateResource(const CachedResource Request&, CachedResource*); | 138 CachedResourceHandle<CachedResource> revalidateResource(const CachedResource Request&, CachedResource*); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
200 m_loader->m_allowStaleResources = m_previousState; | 200 m_loader->m_allowStaleResources = m_previousState; |
201 } | 201 } |
202 private: | 202 private: |
203 CachedResourceLoader* m_loader; | 203 CachedResourceLoader* m_loader; |
204 bool m_previousState; | 204 bool m_previousState; |
205 }; | 205 }; |
206 | 206 |
207 } // namespace WebCore | 207 } // namespace WebCore |
208 | 208 |
209 #endif | 209 #endif |
OLD | NEW |