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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 bool startLoad(Resource*); | 87 bool startLoad(Resource*); |
88 | 88 |
89 void setAutoLoadImages(bool); | 89 void setAutoLoadImages(bool); |
90 void setImagesEnabled(bool); | 90 void setImagesEnabled(bool); |
91 | 91 |
92 FetchContext& context() const { | 92 FetchContext& context() const { |
93 return m_context ? *m_context.get() : FetchContext::nullInstance(); | 93 return m_context ? *m_context.get() : FetchContext::nullInstance(); |
94 } | 94 } |
95 void clearContext(); | 95 void clearContext(); |
96 | 96 |
97 int requestCount() const; | 97 int blockingRequestCount() const; |
98 bool hasPendingRequest() const; | 98 int nonblockingRequestCount() const; |
99 | 99 |
100 enum ClearPreloadsPolicy { ClearAllPreloads, ClearSpeculativeMarkupPreloads }; | 100 enum ClearPreloadsPolicy { ClearAllPreloads, ClearSpeculativeMarkupPreloads }; |
101 | 101 |
102 void enableIsPreloadedForTest(); | 102 void enableIsPreloadedForTest(); |
103 bool isPreloadedForTest(const KURL&) const; | 103 bool isPreloadedForTest(const KURL&) const; |
104 | 104 |
105 int countPreloads() const { return m_preloads ? m_preloads->size() : 0; } | 105 int countPreloads() const { return m_preloads ? m_preloads->size() : 0; } |
106 void clearPreloads(ClearPreloadsPolicy = ClearAllPreloads); | 106 void clearPreloads(ClearPreloadsPolicy = ClearAllPreloads); |
107 void preloadStarted(Resource*); | 107 void preloadStarted(Resource*); |
108 void logPreloadStats(ClearPreloadsPolicy); | 108 void logPreloadStats(ClearPreloadsPolicy); |
(...skipping 175 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 |