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

Unified Diff: Source/modules/crypto/RsaHashedKeyAlgorithm.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/RsaHashedKeyAlgorithm.h
diff --git a/Source/core/css/CSSFontSelectorClient.h b/Source/modules/crypto/RsaHashedKeyAlgorithm.h
similarity index 78%
copy from Source/core/css/CSSFontSelectorClient.h
copy to Source/modules/crypto/RsaHashedKeyAlgorithm.h
index 28a6c87742256f5224d530dc9d9110cf48f0a86e..db1af7badbaaf79234501aaa739c677124e24788 100644
--- a/Source/core/css/CSSFontSelectorClient.h
+++ b/Source/modules/crypto/RsaHashedKeyAlgorithm.h
@@ -28,20 +28,27 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CSSFontSelectorClient_h
-#define CSSFontSelectorClient_h
+#ifndef RsaHashedKeyAlgorithm_h
+#define RsaHashedKeyAlgorithm_h
-namespace WebCore {
+#include "modules/crypto/RsaKeyAlgorithm.h"
-class CSSFontSelector;
+namespace WebCore {
-class CSSFontSelectorClient {
+class RsaHashedKeyAlgorithm : public RsaKeyAlgorithm {
public:
- virtual ~CSSFontSelectorClient() { }
+ static PassRefPtrWillBeRawPtr<RsaHashedKeyAlgorithm> create(const blink::WebCryptoKeyAlgorithm&);
+
+ KeyAlgorithm* hash();
+
+ void trace(Visitor*);
haraken 2014/02/25 09:15:46 Add 'virtual' and 'OVERRIDE'. The same comment for
Mads Ager (chromium) 2014/02/25 09:34:18 Good catch Haraken! KeyAlgorithm.h does not have a
eroman 2014/02/26 01:37:36 Done.
+
+protected:
+ RsaHashedKeyAlgorithm(const blink::WebCryptoKeyAlgorithm&);
haraken 2014/02/25 09:15:46 Add 'explicit'.
eroman 2014/02/26 01:37:36 Done.
eroman 2014/02/26 01:37:36 Done.
- virtual void fontsNeedUpdate(CSSFontSelector*) = 0;
+ RefPtrWillBeMember<KeyAlgorithm> m_hash;
haraken 2014/02/25 09:15:46 Can this be a private member?
eroman 2014/02/26 01:37:36 Done.
};
} // namespace WebCore
-#endif // CSSFontSelectorClient_h
+#endif

Powered by Google App Engine
This is Rietveld 408576698