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

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

Issue 2711893002: Loosen FirstMeaningfulPaint UMA network-idle heuristics (Closed)
Patch Set: add tests, rebase 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 bool startLoad(Resource*); 86 bool startLoad(Resource*);
87 87
88 void setAutoLoadImages(bool); 88 void setAutoLoadImages(bool);
89 void setImagesEnabled(bool); 89 void setImagesEnabled(bool);
90 90
91 FetchContext& context() const { 91 FetchContext& context() const {
92 return m_context ? *m_context.get() : FetchContext::nullInstance(); 92 return m_context ? *m_context.get() : FetchContext::nullInstance();
93 } 93 }
94 void clearContext(); 94 void clearContext();
95 95
96 int requestCount() const; 96 int blockingRequestCount() const;
97 bool hasPendingRequest() const; 97 int nonblockingRequestCount() const;
98 98
99 enum ClearPreloadsPolicy { ClearAllPreloads, ClearSpeculativeMarkupPreloads }; 99 enum ClearPreloadsPolicy { ClearAllPreloads, ClearSpeculativeMarkupPreloads };
100 100
101 void enableIsPreloadedForTest(); 101 void enableIsPreloadedForTest();
102 bool isPreloadedForTest(const KURL&) const; 102 bool isPreloadedForTest(const KURL&) const;
103 103
104 int countPreloads() const { return m_preloads ? m_preloads->size() : 0; } 104 int countPreloads() const { return m_preloads ? m_preloads->size() : 0; }
105 void clearPreloads(ClearPreloadsPolicy = ClearAllPreloads); 105 void clearPreloads(ClearPreloadsPolicy = ClearAllPreloads);
106 void preloadStarted(Resource*); 106 void preloadStarted(Resource*);
107 void logPreloadStats(ClearPreloadsPolicy); 107 void logPreloadStats(ClearPreloadsPolicy);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 } 283 }
284 284
285 private: 285 private:
286 Member<ResourceFetcher> m_loader; 286 Member<ResourceFetcher> m_loader;
287 bool m_previousState; 287 bool m_previousState;
288 }; 288 };
289 289
290 } // namespace blink 290 } // namespace blink
291 291
292 #endif // ResourceFetcher_h 292 #endif // ResourceFetcher_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698