Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.h

Issue 2711893002: Loosen FirstMeaningfulPaint UMA network-idle heuristics (Closed)
Patch Set: Capture 0-stable and 2-stable independently Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698