OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_RTC_BASE_RTCCERTIFICATEGENERATOR_H_ | 11 #ifndef WEBRTC_RTC_BASE_RTCCERTIFICATEGENERATOR_H_ |
12 #define WEBRTC_RTC_BASE_RTCCERTIFICATEGENERATOR_H_ | 12 #define WEBRTC_RTC_BASE_RTCCERTIFICATEGENERATOR_H_ |
13 | 13 |
14 #include "webrtc/rtc_base/optional.h" | 14 #include "webrtc/base/optional.h" |
15 #include "webrtc/rtc_base/refcount.h" | 15 #include "webrtc/base/refcount.h" |
16 #include "webrtc/rtc_base/rtccertificate.h" | 16 #include "webrtc/base/rtccertificate.h" |
17 #include "webrtc/rtc_base/scoped_ref_ptr.h" | 17 #include "webrtc/base/scoped_ref_ptr.h" |
18 #include "webrtc/rtc_base/sslidentity.h" | 18 #include "webrtc/base/sslidentity.h" |
19 #include "webrtc/rtc_base/thread.h" | 19 #include "webrtc/base/thread.h" |
20 | 20 |
21 namespace rtc { | 21 namespace rtc { |
22 | 22 |
23 // See |RTCCertificateGeneratorInterface::GenerateCertificateAsync|. | 23 // See |RTCCertificateGeneratorInterface::GenerateCertificateAsync|. |
24 class RTCCertificateGeneratorCallback : public RefCountInterface { | 24 class RTCCertificateGeneratorCallback : public RefCountInterface { |
25 public: | 25 public: |
26 virtual void OnSuccess( | 26 virtual void OnSuccess( |
27 const scoped_refptr<RTCCertificate>& certificate) = 0; | 27 const scoped_refptr<RTCCertificate>& certificate) = 0; |
28 virtual void OnFailure() = 0; | 28 virtual void OnFailure() = 0; |
29 | 29 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 const scoped_refptr<RTCCertificateGeneratorCallback>& callback) override; | 77 const scoped_refptr<RTCCertificateGeneratorCallback>& callback) override; |
78 | 78 |
79 private: | 79 private: |
80 Thread* const signaling_thread_; | 80 Thread* const signaling_thread_; |
81 Thread* const worker_thread_; | 81 Thread* const worker_thread_; |
82 }; | 82 }; |
83 | 83 |
84 } // namespace rtc | 84 } // namespace rtc |
85 | 85 |
86 #endif // WEBRTC_RTC_BASE_RTCCERTIFICATEGENERATOR_H_ | 86 #endif // WEBRTC_RTC_BASE_RTCCERTIFICATEGENERATOR_H_ |
OLD | NEW |