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

Side by Side Diff: public/platform/WebCrypto.h

Issue 23617006: WebCrypto: Add the KeyPair interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase onto master Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/testing/runner/MockWebCrypto.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 { 62 {
63 assign(o); 63 assign(o);
64 return *this; 64 return *this;
65 } 65 }
66 66
67 WEBKIT_EXPORT void completeWithError(); 67 WEBKIT_EXPORT void completeWithError();
68 WEBKIT_EXPORT void completeWithBuffer(const WebArrayBuffer&); 68 WEBKIT_EXPORT void completeWithBuffer(const WebArrayBuffer&);
69 WEBKIT_EXPORT void completeWithBuffer(const void*, size_t); 69 WEBKIT_EXPORT void completeWithBuffer(const void*, size_t);
70 WEBKIT_EXPORT void completeWithBoolean(bool); 70 WEBKIT_EXPORT void completeWithBoolean(bool);
71 WEBKIT_EXPORT void completeWithKey(const WebCryptoKey&); 71 WEBKIT_EXPORT void completeWithKey(const WebCryptoKey&);
72 WEBKIT_EXPORT void completeWithKeyPair(const WebCryptoKey& publicKey, const WebCryptoKey& privateKey);
72 73
73 #if WEBKIT_IMPLEMENTATION 74 #if WEBKIT_IMPLEMENTATION
74 explicit WebCryptoResult(const WTF::PassRefPtr<WebCore::CryptoResult>&); 75 explicit WebCryptoResult(const WTF::PassRefPtr<WebCore::CryptoResult>&);
75 #endif 76 #endif
76 77
77 private: 78 private:
78 WEBKIT_EXPORT void reset(); 79 WEBKIT_EXPORT void reset();
79 WEBKIT_EXPORT void assign(const WebCryptoResult&); 80 WEBKIT_EXPORT void assign(const WebCryptoResult&);
80 81
81 WebPrivatePtr<WebCore::CryptoResult> m_impl; 82 WebPrivatePtr<WebCore::CryptoResult> m_impl;
(...skipping 19 matching lines...) Expand all
101 virtual void generateKey(const WebCryptoAlgorithm&, bool extractable, WebCry ptoKeyUsageMask, WebCryptoResult) { WEBKIT_ASSERT_NOT_REACHED(); } 102 virtual void generateKey(const WebCryptoAlgorithm&, bool extractable, WebCry ptoKeyUsageMask, WebCryptoResult) { WEBKIT_ASSERT_NOT_REACHED(); }
102 virtual void importKey(WebCryptoKeyFormat, const unsigned char* keyData, siz e_t keyDataSize, const WebCryptoAlgorithm&, bool extractable, WebCryptoKeyUsageM ask, WebCryptoResult) { WEBKIT_ASSERT_NOT_REACHED(); } 103 virtual void importKey(WebCryptoKeyFormat, const unsigned char* keyData, siz e_t keyDataSize, const WebCryptoAlgorithm&, bool extractable, WebCryptoKeyUsageM ask, WebCryptoResult) { WEBKIT_ASSERT_NOT_REACHED(); }
103 104
104 protected: 105 protected:
105 virtual ~WebCrypto() { } 106 virtual ~WebCrypto() { }
106 }; 107 };
107 108
108 } // namespace WebKit 109 } // namespace WebKit
109 110
110 #endif 111 #endif
OLDNEW
« no previous file with comments | « Source/testing/runner/MockWebCrypto.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698