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

Side by Side Diff: talk/app/webrtc/dtlsidentitystore.h

Issue 1312293003: Add option to enable ECDSA key for Java API. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Add TODO item Created 5 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
« no previous file with comments | « no previous file | talk/app/webrtc/dtlsidentitystore.cc » ('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 * 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/dtlsidentitystore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698