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

Side by Side Diff: Source/modules/crypto/KeyPair.h

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | « Source/modules/crypto/Key.cpp ('k') | Source/modules/crypto/KeyPair.cpp » ('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 18 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « Source/modules/crypto/Key.cpp ('k') | Source/modules/crypto/KeyPair.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698