| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void setImagesEnabled(bool); | 111 void setImagesEnabled(bool); |
| 112 | 112 |
| 113 bool shouldDeferImageLoad(const KURL&) const; | 113 bool shouldDeferImageLoad(const KURL&) const; |
| 114 | 114 |
| 115 LocalFrame* frame() const; // Can be null | 115 LocalFrame* frame() const; // Can be null |
| 116 FetchContext& context() const; | 116 FetchContext& context() const; |
| 117 Document* document() const { return m_document; } // Can be null | 117 Document* document() const { return m_document; } // Can be null |
| 118 void setDocument(RawPtr<Document> document) { m_document = document; } | 118 void setDocument(RawPtr<Document> document) { m_document = document; } |
| 119 | 119 |
| 120 DocumentLoader* documentLoader() const { return m_documentLoader; } | 120 DocumentLoader* documentLoader() const { return m_documentLoader; } |
| 121 void clearDocumentLoader() { m_documentLoader = 0; } | 121 void clearDocumentLoader() { m_documentLoader = nullptr; } |
| 122 | 122 |
| 123 void garbageCollectDocumentResources(); | 123 void garbageCollectDocumentResources(); |
| 124 | 124 |
| 125 int requestCount() const { return m_requestCount; } | 125 int requestCount() const { return m_requestCount; } |
| 126 | 126 |
| 127 bool isPreloaded(const String& urlString) const; | 127 bool isPreloaded(const String& urlString) const; |
| 128 void clearPreloads(); | 128 void clearPreloads(); |
| 129 void preload(Resource::Type, FetchRequest&, const String& charset); | 129 void preload(Resource::Type, FetchRequest&, const String& charset); |
| 130 void printPreloadStats(); | 130 void printPreloadStats(); |
| 131 | 131 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 m_loader->m_allowStaleResources = m_previousState; | 265 m_loader->m_allowStaleResources = m_previousState; |
| 266 } | 266 } |
| 267 private: | 267 private: |
| 268 ResourceFetcher* m_loader; | 268 ResourceFetcher* m_loader; |
| 269 bool m_previousState; | 269 bool m_previousState; |
| 270 }; | 270 }; |
| 271 | 271 |
| 272 } // namespace blink | 272 } // namespace blink |
| 273 | 273 |
| 274 #endif | 274 #endif |
| OLD | NEW |