| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 WebCryptoAlgorithmId id; | 48 WebCryptoAlgorithmId id; |
| 49 OwnPtr<WebCryptoAlgorithmParams> params; | 49 OwnPtr<WebCryptoAlgorithmParams> params; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 WebCryptoAlgorithm::WebCryptoAlgorithm(WebCryptoAlgorithmId id, PassOwnPtr<WebCr
yptoAlgorithmParams> params) | 52 WebCryptoAlgorithm::WebCryptoAlgorithm(WebCryptoAlgorithmId id, PassOwnPtr<WebCr
yptoAlgorithmParams> params) |
| 53 : m_private(adoptRef(new WebCryptoAlgorithmPrivate(id, params))) | 53 : m_private(adoptRef(new WebCryptoAlgorithmPrivate(id, params))) |
| 54 { | 54 { |
| 55 } | 55 } |
| 56 | 56 |
| 57 WebCryptoAlgorithm WebCryptoAlgorithm::adoptParamsAndCreate(WebCryptoAlgorithmId
id, const char*, WebCryptoAlgorithmParams* params) | |
| 58 { | |
| 59 return WebCryptoAlgorithm(id, adoptPtr(params)); | |
| 60 } | |
| 61 | |
| 62 WebCryptoAlgorithm WebCryptoAlgorithm::adoptParamsAndCreate(WebCryptoAlgorithmId
id, WebCryptoAlgorithmParams* params) | 57 WebCryptoAlgorithm WebCryptoAlgorithm::adoptParamsAndCreate(WebCryptoAlgorithmId
id, WebCryptoAlgorithmParams* params) |
| 63 { | 58 { |
| 64 return WebCryptoAlgorithm(id, adoptPtr(params)); | 59 return WebCryptoAlgorithm(id, adoptPtr(params)); |
| 65 } | 60 } |
| 66 | 61 |
| 67 WebCryptoAlgorithmId WebCryptoAlgorithm::id() const | 62 WebCryptoAlgorithmId WebCryptoAlgorithm::id() const |
| 68 { | 63 { |
| 69 return m_private->id; | 64 return m_private->id; |
| 70 } | 65 } |
| 71 | 66 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 { | 117 { |
| 123 m_private = other.m_private; | 118 m_private = other.m_private; |
| 124 } | 119 } |
| 125 | 120 |
| 126 void WebCryptoAlgorithm::reset() | 121 void WebCryptoAlgorithm::reset() |
| 127 { | 122 { |
| 128 m_private.reset(); | 123 m_private.reset(); |
| 129 } | 124 } |
| 130 | 125 |
| 131 } // namespace WebKit | 126 } // namespace WebKit |
| OLD | NEW |