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

Side by Side Diff: third_party/WebKit/Source/core/fetch/FontResource.h

Issue 1706083002: Split ImageResourceClient into ResourceClient and ImageResourceObserver [1/2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reflect comments and Rebase Created 4 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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 public: 44 public:
45 using ClientType = FontResourceClient; 45 using ClientType = FontResourceClient;
46 46
47 static PassRefPtrWillBeRawPtr<FontResource> fetch(FetchRequest&, ResourceFet cher*); 47 static PassRefPtrWillBeRawPtr<FontResource> fetch(FetchRequest&, ResourceFet cher*);
48 ~FontResource() override; 48 ~FontResource() override;
49 49
50 void load(ResourceFetcher*, const ResourceLoaderOptions&) override; 50 void load(ResourceFetcher*, const ResourceLoaderOptions&) override;
51 51
52 void didAddClient(ResourceClient*) override; 52 void didAddClient(ResourceClient*) override;
53 53
54 void allClientsRemoved() override; 54 void allClientsAndObserversRemoved() override;
55 void beginLoadIfNeeded(ResourceFetcher* dl); 55 void beginLoadIfNeeded(ResourceFetcher* dl);
56 bool stillNeedsLoad() const override { return m_state < LoadInitiated; } 56 bool stillNeedsLoad() const override { return m_state < LoadInitiated; }
57 57
58 bool loadScheduled() const { return m_state != Unloaded; } 58 bool loadScheduled() const { return m_state != Unloaded; }
59 void didScheduleLoad(); 59 void didScheduleLoad();
60 void didUnscheduleLoad(); 60 void didUnscheduleLoad();
61 61
62 void setCORSFailed() override { m_corsFailed = true; } 62 void setCORSFailed() override { m_corsFailed = true; }
63 bool isCORSFailed() const { return m_corsFailed; } 63 bool isCORSFailed() const { return m_corsFailed; }
64 String otsParsingMessage() const { return m_otsParsingMessage; } 64 String otsParsingMessage() const { return m_otsParsingMessage; }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 ResourceClientType getResourceClientType() const final { return FontType; } 107 ResourceClientType getResourceClientType() const final { return FontType; }
108 virtual void fontLoaded(FontResource*) {} 108 virtual void fontLoaded(FontResource*) {}
109 virtual void didStartFontLoad(FontResource*) {} 109 virtual void didStartFontLoad(FontResource*) {}
110 virtual void fontLoadShortLimitExceeded(FontResource*) {} 110 virtual void fontLoadShortLimitExceeded(FontResource*) {}
111 virtual void fontLoadLongLimitExceeded(FontResource*) {} 111 virtual void fontLoadLongLimitExceeded(FontResource*) {}
112 }; 112 };
113 113
114 } // namespace blink 114 } // namespace blink
115 115
116 #endif 116 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698