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

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

Issue 23338006: Cleanup: remove WebCryptoResultPrivate from blink API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove extra newline 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 | Source/modules/crypto/CryptoResult.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 11 matching lines...) Expand all
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "public/platform/WebCrypto.h"
33
34 #include "modules/crypto/CryptoResult.h"
32 #include "public/platform/WebArrayBuffer.h" 35 #include "public/platform/WebArrayBuffer.h"
33 #include "public/platform/WebCrypto.h"
34 #include <string.h> 36 #include <string.h>
35 37
36 namespace WebKit { 38 namespace WebKit {
37 39
38 void WebCryptoResult::completeWithError() 40 void WebCryptoResult::completeWithError()
39 { 41 {
40 m_impl->completeWithError(); 42 m_impl->completeWithError();
41 reset(); 43 reset();
42 } 44 }
43 45
(...skipping 17 matching lines...) Expand all
61 m_impl->completeWithBoolean(b); 63 m_impl->completeWithBoolean(b);
62 reset(); 64 reset();
63 } 65 }
64 66
65 void WebCryptoResult::completeWithKey(const WebCryptoKey& key) 67 void WebCryptoResult::completeWithKey(const WebCryptoKey& key)
66 { 68 {
67 m_impl->completeWithKey(key); 69 m_impl->completeWithKey(key);
68 reset(); 70 reset();
69 } 71 }
70 72
73 WebCryptoResult::WebCryptoResult(const WTF::PassRefPtr<WebCore::CryptoResult>& i mpl)
74 : m_impl(impl)
75 {
76 ASSERT(impl);
77 }
78
71 void WebCryptoResult::reset() 79 void WebCryptoResult::reset()
72 { 80 {
73 m_impl.reset(); 81 m_impl.reset();
74 } 82 }
75 83
76 void WebCryptoResult::assign(const WebCryptoResult& o) 84 void WebCryptoResult::assign(const WebCryptoResult& o)
77 { 85 {
78 m_impl = o.m_impl; 86 m_impl = o.m_impl;
79 } 87 }
80 88
81 void WebCryptoResult::assign(WebCryptoResultPrivate* impl)
82 {
83 m_impl = impl;
84 }
85
86 } // namespace WebKit 89 } // namespace WebKit
OLDNEW
« no previous file with comments | « no previous file | Source/modules/crypto/CryptoResult.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698