| Index: third_party/WebKit/Source/core/testing/CacheAwareFontDisplayTest.h
|
| diff --git a/third_party/WebKit/Source/core/testing/CacheAwareFontDisplayTest.h b/third_party/WebKit/Source/core/testing/CacheAwareFontDisplayTest.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..62ec05080e05c3ee9ab26259985c563d27f71845
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/testing/CacheAwareFontDisplayTest.h
|
| @@ -0,0 +1,42 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CacheAwareFontDisplayTest_h
|
| +#define CacheAwareFontDisplayTest_h
|
| +
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "platform/heap/Handle.h"
|
| +#include "wtf/text/WTFString.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class Document;
|
| +class FontResource;
|
| +
|
| +class CacheAwareFontDisplayTest final
|
| + : public GarbageCollectedFinalized<CacheAwareFontDisplayTest>,
|
| + public ScriptWrappable {
|
| + DEFINE_WRAPPERTYPEINFO();
|
| +
|
| + public:
|
| + static CacheAwareFontDisplayTest* create(Document* document,
|
| + const String& fontUrl) {
|
| + return new CacheAwareFontDisplayTest(document, fontUrl);
|
| + }
|
| +
|
| + void fontLoadShortLimitCallback();
|
| + void fontLoadLongLimitCallback();
|
| + void willReloadAfterDiskCacheMiss();
|
| +
|
| + DECLARE_TRACE();
|
| +
|
| + private:
|
| + explicit CacheAwareFontDisplayTest(Document*, const String& fontUrl);
|
| +
|
| + WeakMember<FontResource> m_fontResource;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // CacheAwareFontDisplayTest_h
|
|
|