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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef KeyPair_h | 31 #ifndef KeyPair_h |
32 #define KeyPair_h | 32 #define KeyPair_h |
33 | 33 |
34 #include "bindings/v8/ScriptWrappable.h" | 34 #include "bindings/v8/ScriptWrappable.h" |
35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
37 #include "wtf/RefPtr.h" | 37 #include "wtf/RefPtr.h" |
38 | 38 |
39 namespace WebKit { class WebCryptoKey; } | 39 namespace blink { class WebCryptoKey; } |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 class Key; | 43 class Key; |
44 | 44 |
45 class KeyPair : public ScriptWrappable, public RefCounted<KeyPair> { | 45 class KeyPair : public ScriptWrappable, public RefCounted<KeyPair> { |
46 public: | 46 public: |
47 static PassRefPtr<KeyPair> create(const WebKit::WebCryptoKey& publicKey, con
st WebKit::WebCryptoKey& privateKey); | 47 static PassRefPtr<KeyPair> create(const blink::WebCryptoKey& publicKey, cons
t blink::WebCryptoKey& privateKey); |
48 | 48 |
49 Key* publicKey() { return m_publicKey.get(); } | 49 Key* publicKey() { return m_publicKey.get(); } |
50 Key* privateKey() { return m_privateKey.get(); } | 50 Key* privateKey() { return m_privateKey.get(); } |
51 | 51 |
52 protected: | 52 protected: |
53 KeyPair(const PassRefPtr<Key>& publicKey, const PassRefPtr<Key>& privateKey)
; | 53 KeyPair(const PassRefPtr<Key>& publicKey, const PassRefPtr<Key>& privateKey)
; |
54 | 54 |
55 RefPtr<Key> m_publicKey; | 55 RefPtr<Key> m_publicKey; |
56 RefPtr<Key> m_privateKey; | 56 RefPtr<Key> m_privateKey; |
57 }; | 57 }; |
58 | 58 |
59 } // namespace WebCore | 59 } // namespace WebCore |
60 | 60 |
61 #endif | 61 #endif |
OLD | NEW |