OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "webrtc/base/messagehandler.h" | 34 #include "webrtc/base/messagehandler.h" |
35 #include "webrtc/base/messagequeue.h" | 35 #include "webrtc/base/messagequeue.h" |
36 #include "webrtc/base/refcount.h" | 36 #include "webrtc/base/refcount.h" |
37 #include "webrtc/base/scoped_ptr.h" | 37 #include "webrtc/base/scoped_ptr.h" |
38 #include "webrtc/base/scoped_ref_ptr.h" | 38 #include "webrtc/base/scoped_ref_ptr.h" |
39 #include "webrtc/base/sslidentity.h" | 39 #include "webrtc/base/sslidentity.h" |
40 #include "webrtc/base/thread.h" | 40 #include "webrtc/base/thread.h" |
41 | 41 |
42 namespace webrtc { | 42 namespace webrtc { |
| 43 |
| 44 // Passed to SSLIdentity::Generate. |
| 45 extern const char kIdentityName[]; |
| 46 |
43 class SSLIdentity; | 47 class SSLIdentity; |
44 class Thread; | 48 class Thread; |
45 | 49 |
46 // Used to receive callbacks of DTLS identity requests. | 50 // Used to receive callbacks of DTLS identity requests. |
47 class DtlsIdentityRequestObserver : public rtc::RefCountInterface { | 51 class DtlsIdentityRequestObserver : public rtc::RefCountInterface { |
48 public: | 52 public: |
49 virtual void OnFailure(int error) = 0; | 53 virtual void OnFailure(int error) = 0; |
50 // TODO(hbos): Unify the OnSuccess method once Chrome code is updated. | 54 // TODO(hbos): Unify the OnSuccess method once Chrome code is updated. |
51 virtual void OnSuccess(const std::string& der_cert, | 55 virtual void OnSuccess(const std::string& der_cert, |
52 const std::string& der_private_key) = 0; | 56 const std::string& der_private_key) = 0; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 rtc::scoped_ptr<rtc::SSLIdentity> free_identity_; | 140 rtc::scoped_ptr<rtc::SSLIdentity> free_identity_; |
137 }; | 141 }; |
138 | 142 |
139 // One RequestInfo per KeyType. Only touch on the |signaling_thread_|. | 143 // One RequestInfo per KeyType. Only touch on the |signaling_thread_|. |
140 RequestInfo request_info_[rtc::KT_LAST]; | 144 RequestInfo request_info_[rtc::KT_LAST]; |
141 }; | 145 }; |
142 | 146 |
143 } // namespace webrtc | 147 } // namespace webrtc |
144 | 148 |
145 #endif // TALK_APP_WEBRTC_DTLSIDENTITYSTORE_H_ | 149 #endif // TALK_APP_WEBRTC_DTLSIDENTITYSTORE_H_ |
OLD | NEW |