| 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 | 4 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 5 rights reserved. | 5 rights reserved. |
| 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ | 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ |
| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 bool hasPendingRequest() const; | 100 bool hasPendingRequest() const; |
| 101 | 101 |
| 102 enum ClearPreloadsPolicy { ClearAllPreloads, ClearSpeculativeMarkupPreloads }; | 102 enum ClearPreloadsPolicy { ClearAllPreloads, ClearSpeculativeMarkupPreloads }; |
| 103 | 103 |
| 104 void enableIsPreloadedForTest(); | 104 void enableIsPreloadedForTest(); |
| 105 bool isPreloadedForTest(const KURL&) const; | 105 bool isPreloadedForTest(const KURL&) const; |
| 106 | 106 |
| 107 int countPreloads() const { return m_preloads ? m_preloads->size() : 0; } | 107 int countPreloads() const { return m_preloads ? m_preloads->size() : 0; } |
| 108 void clearPreloads(ClearPreloadsPolicy = ClearAllPreloads); | 108 void clearPreloads(ClearPreloadsPolicy = ClearAllPreloads); |
| 109 void preloadStarted(Resource*); | 109 void preloadStarted(Resource*); |
| 110 void logPreloadStats(); | 110 void logPreloadStats(ClearPreloadsPolicy); |
| 111 void warnUnusedPreloads(); | 111 void warnUnusedPreloads(); |
| 112 | 112 |
| 113 MHTMLArchive* archive() const { return m_archive.get(); } | 113 MHTMLArchive* archive() const { return m_archive.get(); } |
| 114 ArchiveResource* createArchive(Resource*); | 114 ArchiveResource* createArchive(Resource*); |
| 115 | 115 |
| 116 void setDefersLoading(bool); | 116 void setDefersLoading(bool); |
| 117 void stopFetching(); | 117 void stopFetching(); |
| 118 bool isFetching() const; | 118 bool isFetching() const; |
| 119 | 119 |
| 120 bool willFollowRedirect(Resource*, ResourceRequest&, const ResourceResponse&); | 120 bool willFollowRedirect(Resource*, ResourceRequest&, const ResourceResponse&); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 } | 284 } |
| 285 | 285 |
| 286 private: | 286 private: |
| 287 Member<ResourceFetcher> m_loader; | 287 Member<ResourceFetcher> m_loader; |
| 288 bool m_previousState; | 288 bool m_previousState; |
| 289 }; | 289 }; |
| 290 | 290 |
| 291 } // namespace blink | 291 } // namespace blink |
| 292 | 292 |
| 293 #endif // ResourceFetcher_h | 293 #endif // ResourceFetcher_h |
| OLD | NEW |