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

Side by Side Diff: content/renderer/media/rtc_certificate_generator.h

Issue 2147413002: WebRTCCertificateGenerator should not use std::string. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ 6 #define CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/WebKit/public/platform/WebRTCCertificate.h" 9 #include "third_party/WebKit/public/platform/WebRTCCertificate.h"
10 #include "third_party/WebKit/public/platform/WebRTCCertificateGenerator.h" 10 #include "third_party/WebKit/public/platform/WebRTCCertificateGenerator.h"
(...skipping 13 matching lines...) Expand all
24 // blink::WebRTCCertificateGenerator implementation. 24 // blink::WebRTCCertificateGenerator implementation.
25 void generateCertificate( 25 void generateCertificate(
26 const blink::WebRTCKeyParams& key_params, 26 const blink::WebRTCKeyParams& key_params,
27 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; 27 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override;
28 void generateCertificateWithExpiration( 28 void generateCertificateWithExpiration(
29 const blink::WebRTCKeyParams& key_params, 29 const blink::WebRTCKeyParams& key_params,
30 uint64_t expires_ms, 30 uint64_t expires_ms,
31 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; 31 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override;
32 bool isSupportedKeyParams(const blink::WebRTCKeyParams& key_params) override; 32 bool isSupportedKeyParams(const blink::WebRTCKeyParams& key_params) override;
33 std::unique_ptr<blink::WebRTCCertificate> fromPEM( 33 std::unique_ptr<blink::WebRTCCertificate> fromPEM(
34 const std::string& pem_private_key, 34 blink::WebString pem_private_key,
35 const std::string& pem_certificate) override; 35 blink::WebString pem_certificate) override;
36 36
37 private: 37 private:
38 void generateCertificateWithOptionalExpiration( 38 void generateCertificateWithOptionalExpiration(
39 const blink::WebRTCKeyParams& key_params, 39 const blink::WebRTCKeyParams& key_params,
40 const rtc::Optional<uint64_t>& expires_ms, 40 const rtc::Optional<uint64_t>& expires_ms,
41 std::unique_ptr<blink::WebRTCCertificateCallback> observer); 41 std::unique_ptr<blink::WebRTCCertificateCallback> observer);
42 42
43 DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator); 43 DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator);
44 }; 44 };
45 45
46 } // namespace content 46 } // namespace content
47 47
48 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ 48 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_certificate.cc ('k') | content/renderer/media/rtc_certificate_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698