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

Unified Diff: third_party/WebKit/Source/core/fetch/FontResource.h

Issue 1829403002: Clean up font loading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Resource_status
Patch Set: Another rebase! Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/FontResource.h
diff --git a/third_party/WebKit/Source/core/fetch/FontResource.h b/third_party/WebKit/Source/core/fetch/FontResource.h
index c58741e99ab0361080d5787517ad491d60d0440e..b3852f73cc36c7dc626348cf17628abdcd0ea2a2 100644
--- a/third_party/WebKit/Source/core/fetch/FontResource.h
+++ b/third_party/WebKit/Source/core/fetch/FontResource.h
@@ -47,16 +47,10 @@ public:
static FontResource* fetch(FetchRequest&, ResourceFetcher*);
~FontResource() override;
- void load(ResourceFetcher*) override;
-
void didAddClient(ResourceClient*) override;
void allClientsAndObserversRemoved() override;
- void beginLoadIfNeeded(ResourceFetcher* dl);
-
- bool loadScheduled() const { return getStatus() == LoadStartScheduled; }
- void didScheduleLoad();
- void didUnscheduleLoad();
+ void startLoadLimitTimersIfNeeded();
void setCORSFailed() override { m_corsFailed = true; }
bool isCORSFailed() const { return m_corsFailed; }
@@ -105,7 +99,6 @@ public:
static bool isExpectedType(ResourceClient* client) { return client->getResourceClientType() == FontType; }
ResourceClientType getResourceClientType() const final { return FontType; }
virtual void fontLoaded(FontResource*) {}
- virtual void didStartFontLoad(FontResource*) {}
virtual void fontLoadShortLimitExceeded(FontResource*) {}
virtual void fontLoadLongLimitExceeded(FontResource*) {}
};
« no previous file with comments | « third_party/WebKit/Source/core/fetch/CachingCorrectnessTest.cpp ('k') | third_party/WebKit/Source/core/fetch/FontResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698