| 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*, 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 Loading... |
| 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 |
| OLD | NEW |