| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 void OnMemoryDump(WebMemoryDumpLevelOfDetail, | 71 void OnMemoryDump(WebMemoryDumpLevelOfDetail, |
| 72 WebProcessMemoryDump*) const override; | 72 WebProcessMemoryDump*) const override; |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 class FontResourceFactory : public ResourceFactory { | 75 class FontResourceFactory : public ResourceFactory { |
| 76 public: | 76 public: |
| 77 FontResourceFactory() : ResourceFactory(Resource::kFont) {} | 77 FontResourceFactory() : ResourceFactory(Resource::kFont) {} |
| 78 | 78 |
| 79 Resource* Create(const ResourceRequest& request, | 79 Resource* Create(const ResourceRequest& request, |
| 80 const ResourceLoaderOptions& options, | 80 const ResourceLoaderOptions& options, |
| 81 const String& charset) const override { | 81 const String& charset, |
| 82 FetchContext*) const override { |
| 82 return new FontResource(request, options); | 83 return new FontResource(request, options); |
| 83 } | 84 } |
| 84 }; | 85 }; |
| 85 FontResource(const ResourceRequest&, const ResourceLoaderOptions&); | 86 FontResource(const ResourceRequest&, const ResourceLoaderOptions&); |
| 86 | 87 |
| 87 void CheckNotify() override; | 88 void CheckNotify() override; |
| 88 void FontLoadShortLimitCallback(TimerBase*); | 89 void FontLoadShortLimitCallback(TimerBase*); |
| 89 void FontLoadLongLimitCallback(TimerBase*); | 90 void FontLoadLongLimitCallback(TimerBase*); |
| 90 void NotifyClientsShortLimitExceeded(); | 91 void NotifyClientsShortLimitExceeded(); |
| 91 void NotifyClientsLongLimitExceeded(); | 92 void NotifyClientsLongLimitExceeded(); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // Only the RemoteFontFaceSources clients can prevent lowering of loading | 132 // Only the RemoteFontFaceSources clients can prevent lowering of loading |
| 132 // priority of the remote fonts. Set the default to true to prevent | 133 // priority of the remote fonts. Set the default to true to prevent |
| 133 // other clients from incorrectly returning false. | 134 // other clients from incorrectly returning false. |
| 134 return true; | 135 return true; |
| 135 } | 136 } |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace blink | 139 } // namespace blink |
| 139 | 140 |
| 140 #endif | 141 #endif |
| OLD | NEW |