OLD | NEW |
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 Loading... |
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*) override; | 50 void load(ResourceFetcher*) 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 | 56 |
57 bool loadScheduled() const { return getStatus() == LoadStartScheduled; } | 57 bool loadScheduled() const { return getStatus() == LoadStartScheduled; } |
58 void didScheduleLoad(); | 58 void didScheduleLoad(); |
59 void didUnscheduleLoad(); | 59 void didUnscheduleLoad(); |
60 | 60 |
61 void setCORSFailed() override { m_corsFailed = true; } | 61 void setCORSFailed() override { m_corsFailed = true; } |
62 bool isCORSFailed() const { return m_corsFailed; } | 62 bool isCORSFailed() const { return m_corsFailed; } |
63 String otsParsingMessage() const { return m_otsParsingMessage; } | 63 String otsParsingMessage() const { return m_otsParsingMessage; } |
64 | 64 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 ResourceClientType getResourceClientType() const final { return FontType; } | 106 ResourceClientType getResourceClientType() const final { return FontType; } |
107 virtual void fontLoaded(FontResource*) {} | 107 virtual void fontLoaded(FontResource*) {} |
108 virtual void didStartFontLoad(FontResource*) {} | 108 virtual void didStartFontLoad(FontResource*) {} |
109 virtual void fontLoadShortLimitExceeded(FontResource*) {} | 109 virtual void fontLoadShortLimitExceeded(FontResource*) {} |
110 virtual void fontLoadLongLimitExceeded(FontResource*) {} | 110 virtual void fontLoadLongLimitExceeded(FontResource*) {} |
111 }; | 111 }; |
112 | 112 |
113 } // namespace blink | 113 } // namespace blink |
114 | 114 |
115 #endif | 115 #endif |
OLD | NEW |