| Index: Source/modules/crypto/HmacKeyAlgorithm.h
|
| diff --git a/Source/platform/fonts/FontCacheClient.h b/Source/modules/crypto/HmacKeyAlgorithm.h
|
| similarity index 76%
|
| copy from Source/platform/fonts/FontCacheClient.h
|
| copy to Source/modules/crypto/HmacKeyAlgorithm.h
|
| index 4e43b8c72cf93e9d6f51f68098d434a9d97444ce..f4cbdb40cdf415c445a0fcf7411679089d69152d 100644
|
| --- a/Source/platform/fonts/FontCacheClient.h
|
| +++ b/Source/modules/crypto/HmacKeyAlgorithm.h
|
| @@ -28,21 +28,29 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef FontCacheClient_h
|
| -#define FontCacheClient_h
|
| +#ifndef HmacKeyAlgorithm_h
|
| +#define HmacKeyAlgorithm_h
|
|
|
| -#include "platform/PlatformExport.h"
|
| -#include "wtf/RefCounted.h"
|
| +#include "modules/crypto/KeyAlgorithm.h"
|
|
|
| namespace WebCore {
|
|
|
| -class PLATFORM_EXPORT FontCacheClient : public RefCounted<FontCacheClient> {
|
| +class HmacKeyAlgorithm : public KeyAlgorithm {
|
| public:
|
| - virtual ~FontCacheClient() { }
|
| + static PassRefPtrWillBeRawPtr<HmacKeyAlgorithm> create(const blink::WebCryptoKeyAlgorithm&);
|
|
|
| - virtual void fontCacheInvalidated() = 0;
|
| + KeyAlgorithm* hash();
|
| +
|
| + virtual void trace(Visitor*) OVERRIDE;
|
| +
|
| +private:
|
| + explicit HmacKeyAlgorithm(const blink::WebCryptoKeyAlgorithm&);
|
| +
|
| + RefPtrWillBeMember<KeyAlgorithm> m_hash;
|
| };
|
|
|
| +DEFINE_KEY_ALGORITHM_TYPE_CASTS(HmacKeyAlgorithm);
|
| +
|
| } // namespace WebCore
|
|
|
| -#endif // FontCacheClient_h
|
| +#endif
|
|
|