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

Side by Side Diff: Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp

Issue 23672024: Remove a deprecated method from WebCrypto. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | public/platform/WebCryptoAlgorithm.h » ('j') | 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | public/platform/WebCryptoAlgorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698