Chromium Code Reviews| Index: content/renderer/media/rtc_certificate_generator.h |
| diff --git a/content/renderer/media/rtc_certificate_generator.h b/content/renderer/media/rtc_certificate_generator.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fd3ddcb958ef161cbb1be7ff5972d3ec0b83e2e7 |
| --- /dev/null |
| +++ b/content/renderer/media/rtc_certificate_generator.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ |
| +#define CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ |
| + |
| +#include "third_party/WebKit/public/platform/WebRTCCertificate.h" |
| +#include "third_party/WebKit/public/platform/WebRTCCertificateGenerator.h" |
| +#include "third_party/WebKit/public/platform/WebRTCKeyType.h" |
| +#include "third_party/webrtc/base/rtccertificate.h" |
| +#include "third_party/webrtc/base/scoped_ref_ptr.h" |
|
jochen (gone - plz use gerrit)
2015/09/29 07:47:09
most of the includes appear to be unused in this h
hbos_chromium
2015/10/02 15:43:17
Done.
|
| + |
| +namespace content { |
| + |
| +// Chromium's WebRTCCertificateGenerator implementation; uses the |
| +// PeerConnectionIdentityStore/SSLIdentity::Generate to generate the identity, |
| +// rtc::RTCCertificate and RTCCertificate. |
| +class RTCCertificateGenerator : public blink::WebRTCCertificateGenerator { |
| + public: |
| + ~RTCCertificateGenerator() override { } |
| + |
| + void generateCertificate( |
| + const blink::WebRTCKeyType& keyType, |
| + const blink::WebURL& url, |
| + const blink::WebURL& firstPartyForCookies, |
| + blink::WebCallbacks<blink::WebRTCCertificate*, void>* observer) override; |
| +}; |
|
jochen (gone - plz use gerrit)
2015/09/29 07:47:09
please add private: DISALLOW_COPY_AND_ASSIGN(RTCCe
hbos_chromium
2015/10/02 15:43:17
Done.
|
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ |