| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 class FontResource final : public Resource { | 43 class FontResource final : public Resource { |
| 44 public: | 44 public: |
| 45 using ClientType = FontResourceClient; | 45 using ClientType = FontResourceClient; |
| 46 | 46 |
| 47 static FontResource* fetch(FetchRequest&, ResourceFetcher*); | 47 static FontResource* fetch(FetchRequest&, ResourceFetcher*); |
| 48 ~FontResource() override; | 48 ~FontResource() override; |
| 49 | 49 |
| 50 void didAddClient(ResourceClient*) override; | 50 void didAddClient(ResourceClient*) override; |
| 51 | 51 |
| 52 void setRevalidatingRequest(const ResourceRequest&) override; |
| 53 |
| 52 void allClientsAndObserversRemoved() override; | 54 void allClientsAndObserversRemoved() override; |
| 53 void startLoadLimitTimersIfNeeded(); | 55 void startLoadLimitTimersIfNeeded(); |
| 54 | 56 |
| 55 void setCORSFailed() override { m_corsFailed = true; } | 57 void setCORSFailed() override { m_corsFailed = true; } |
| 56 bool isCORSFailed() const { return m_corsFailed; } | 58 bool isCORSFailed() const { return m_corsFailed; } |
| 57 String otsParsingMessage() const { return m_otsParsingMessage; } | 59 String otsParsingMessage() const { return m_otsParsingMessage; } |
| 58 | 60 |
| 59 bool ensureCustomFontData(); | 61 bool ensureCustomFontData(); |
| 60 FontPlatformData platformDataFromCustomData(float size, bool bold, bool ital
ic, FontOrientation = FontOrientation::Horizontal); | 62 FontPlatformData platformDataFromCustomData(float size, bool bold, bool ital
ic, FontOrientation = FontOrientation::Horizontal); |
| 61 | 63 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 static bool isExpectedType(ResourceClient* client) { return client->getResou
rceClientType() == FontType; } | 101 static bool isExpectedType(ResourceClient* client) { return client->getResou
rceClientType() == FontType; } |
| 100 ResourceClientType getResourceClientType() const final { return FontType; } | 102 ResourceClientType getResourceClientType() const final { return FontType; } |
| 101 virtual void fontLoaded(FontResource*) {} | 103 virtual void fontLoaded(FontResource*) {} |
| 102 virtual void fontLoadShortLimitExceeded(FontResource*) {} | 104 virtual void fontLoadShortLimitExceeded(FontResource*) {} |
| 103 virtual void fontLoadLongLimitExceeded(FontResource*) {} | 105 virtual void fontLoadLongLimitExceeded(FontResource*) {} |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 } // namespace blink | 108 } // namespace blink |
| 107 | 109 |
| 108 #endif | 110 #endif |
| OLD | NEW |