OLD | NEW |
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // * Immutable | 79 // * Immutable |
80 // * Threadsafe | 80 // * Threadsafe |
81 // * Copiable (cheaply) | 81 // * Copiable (cheaply) |
82 class WebCryptoAlgorithm { | 82 class WebCryptoAlgorithm { |
83 public: | 83 public: |
84 #if WEBKIT_IMPLEMENTATION | 84 #if WEBKIT_IMPLEMENTATION |
85 WebCryptoAlgorithm() { } | 85 WebCryptoAlgorithm() { } |
86 WebCryptoAlgorithm(WebCryptoAlgorithmId, PassOwnPtr<WebCryptoAlgorithmParams
>); | 86 WebCryptoAlgorithm(WebCryptoAlgorithmId, PassOwnPtr<WebCryptoAlgorithmParams
>); |
87 #endif | 87 #endif |
88 | 88 |
89 // FIXME: delete this once no longer used | |
90 WEBKIT_EXPORT static WebCryptoAlgorithm adoptParamsAndCreate(WebCryptoAlgori
thmId, const char*, WebCryptoAlgorithmParams*); | |
91 | |
92 WEBKIT_EXPORT static WebCryptoAlgorithm adoptParamsAndCreate(WebCryptoAlgori
thmId, WebCryptoAlgorithmParams*); | 89 WEBKIT_EXPORT static WebCryptoAlgorithm adoptParamsAndCreate(WebCryptoAlgori
thmId, WebCryptoAlgorithmParams*); |
93 | 90 |
94 ~WebCryptoAlgorithm() { reset(); } | 91 ~WebCryptoAlgorithm() { reset(); } |
95 | 92 |
96 WebCryptoAlgorithm(const WebCryptoAlgorithm& other) { assign(other); } | 93 WebCryptoAlgorithm(const WebCryptoAlgorithm& other) { assign(other); } |
97 WebCryptoAlgorithm& operator=(const WebCryptoAlgorithm& other) | 94 WebCryptoAlgorithm& operator=(const WebCryptoAlgorithm& other) |
98 { | 95 { |
99 assign(other); | 96 assign(other); |
100 return *this; | 97 return *this; |
101 } | 98 } |
(...skipping 14 matching lines...) Expand all Loading... |
116 private: | 113 private: |
117 WEBKIT_EXPORT void assign(const WebCryptoAlgorithm& other); | 114 WEBKIT_EXPORT void assign(const WebCryptoAlgorithm& other); |
118 WEBKIT_EXPORT void reset(); | 115 WEBKIT_EXPORT void reset(); |
119 | 116 |
120 WebPrivatePtr<WebCryptoAlgorithmPrivate> m_private; | 117 WebPrivatePtr<WebCryptoAlgorithmPrivate> m_private; |
121 }; | 118 }; |
122 | 119 |
123 } // namespace WebKit | 120 } // namespace WebKit |
124 | 121 |
125 #endif | 122 #endif |
OLD | NEW |