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

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

Issue 2210473002: Mark ResourceClient/ImageResourceObserver finished just before notifying (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests Created 4 years, 4 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 FontResourceFactory() 68 FontResourceFactory()
69 : ResourceFactory(Resource::Font) { } 69 : ResourceFactory(Resource::Font) { }
70 70
71 Resource* create(const ResourceRequest& request, const ResourceLoaderOpt ions& options, const String& charset) const override 71 Resource* create(const ResourceRequest& request, const ResourceLoaderOpt ions& options, const String& charset) const override
72 { 72 {
73 return new FontResource(request, options); 73 return new FontResource(request, options);
74 } 74 }
75 }; 75 };
76 FontResource(const ResourceRequest&, const ResourceLoaderOptions&); 76 FontResource(const ResourceRequest&, const ResourceLoaderOptions&);
77 77
78 void checkNotify() override; 78 void checkNotify(MarkFinishedOption) override;
79 void fontLoadShortLimitCallback(TimerBase*); 79 void fontLoadShortLimitCallback(TimerBase*);
80 void fontLoadLongLimitCallback(TimerBase*); 80 void fontLoadLongLimitCallback(TimerBase*);
81 81
82 bool isSafeToUnlock() const override; 82 bool isSafeToUnlock() const override;
83 83
84 enum LoadLimitState { UnderLimit, ShortLimitExceeded, LongLimitExceeded }; 84 enum LoadLimitState { UnderLimit, ShortLimitExceeded, LongLimitExceeded };
85 85
86 std::unique_ptr<FontCustomPlatformData> m_fontData; 86 std::unique_ptr<FontCustomPlatformData> m_fontData;
87 String m_otsParsingMessage; 87 String m_otsParsingMessage;
88 LoadLimitState m_loadLimitState; 88 LoadLimitState m_loadLimitState;
(...skipping 13 matching lines...) Expand all
102 ResourceClientType getResourceClientType() const final { return FontType; } 102 ResourceClientType getResourceClientType() const final { return FontType; }
103 virtual void fontLoadShortLimitExceeded(FontResource*) {} 103 virtual void fontLoadShortLimitExceeded(FontResource*) {}
104 virtual void fontLoadLongLimitExceeded(FontResource*) {} 104 virtual void fontLoadLongLimitExceeded(FontResource*) {}
105 105
106 DEFINE_INLINE_VIRTUAL_TRACE() {} 106 DEFINE_INLINE_VIRTUAL_TRACE() {}
107 }; 107 };
108 108
109 } // namespace blink 109 } // namespace blink
110 110
111 #endif 111 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698