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

Unified Diff: Source/modules/crypto/RsaKeyAlgorithm.h

Issue 179353002: [webcrypto] Add the KeyAlgorithm interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Inline the empty trace() Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/crypto/RsaKeyAlgorithm.h
diff --git a/Source/platform/fonts/FontCacheClient.h b/Source/modules/crypto/RsaKeyAlgorithm.h
similarity index 77%
copy from Source/platform/fonts/FontCacheClient.h
copy to Source/modules/crypto/RsaKeyAlgorithm.h
index 4e43b8c72cf93e9d6f51f68098d434a9d97444ce..13be268506b1a1042fcf6582974c45fbee232e1f 100644
--- a/Source/platform/fonts/FontCacheClient.h
+++ b/Source/modules/crypto/RsaKeyAlgorithm.h
@@ -28,21 +28,29 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef FontCacheClient_h
-#define FontCacheClient_h
+#ifndef RsaKeyAlgorithm_h
+#define RsaKeyAlgorithm_h
-#include "platform/PlatformExport.h"
-#include "wtf/RefCounted.h"
+#include "modules/crypto/KeyAlgorithm.h"
namespace WebCore {
-class PLATFORM_EXPORT FontCacheClient : public RefCounted<FontCacheClient> {
+class RsaKeyAlgorithm : public KeyAlgorithm {
public:
- virtual ~FontCacheClient() { }
+ ~RsaKeyAlgorithm();
- virtual void fontCacheInvalidated() = 0;
+ static PassRefPtrWillBeRawPtr<RsaKeyAlgorithm> create(const blink::WebCryptoKeyAlgorithm&);
+
+ unsigned modulusLength();
+ Uint8Array* publicExponent();
+
+ void trace(Visitor*);
+
+protected:
+ explicit RsaKeyAlgorithm(const blink::WebCryptoKeyAlgorithm&);
+ RefPtr<Uint8Array> m_publicExponent;
haraken 2014/02/25 09:15:46 Can this be a private member?
eroman 2014/02/26 01:37:36 Done.
};
} // namespace WebCore
-#endif // FontCacheClient_h
+#endif

Powered by Google App Engine
This is Rietveld 408576698