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

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

Issue 1949033002: Ability to persist RTCCertificate in IndexedDB (enables cloning). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 16 matching lines...) Expand all
27 const blink::WebURL& url, 27 const blink::WebURL& url,
28 const blink::WebURL& first_party_for_cookies, 28 const blink::WebURL& first_party_for_cookies,
29 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; 29 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override;
30 void generateCertificateWithExpiration( 30 void generateCertificateWithExpiration(
31 const blink::WebRTCKeyParams& key_params, 31 const blink::WebRTCKeyParams& key_params,
32 const blink::WebURL& url, 32 const blink::WebURL& url,
33 const blink::WebURL& first_party_for_cookies, 33 const blink::WebURL& first_party_for_cookies,
34 uint64_t expires_ms, 34 uint64_t expires_ms,
35 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override; 35 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override;
36 bool isSupportedKeyParams(const blink::WebRTCKeyParams& key_params) override; 36 bool isSupportedKeyParams(const blink::WebRTCKeyParams& key_params) override;
37 std::unique_ptr<blink::WebRTCCertificate> fromPEM(
38 const std::string& pem_private_key,
39 const std::string& pem_certificate) override;
37 40
38 private: 41 private:
39 void generateCertificateWithOptionalExpiration( 42 void generateCertificateWithOptionalExpiration(
40 const blink::WebRTCKeyParams& key_params, 43 const blink::WebRTCKeyParams& key_params,
41 const blink::WebURL& url, 44 const blink::WebURL& url,
42 const blink::WebURL& first_party_for_cookies, 45 const blink::WebURL& first_party_for_cookies,
43 const rtc::Optional<uint64_t>& expires_ms, 46 const rtc::Optional<uint64_t>& expires_ms,
44 std::unique_ptr<blink::WebRTCCertificateCallback> observer); 47 std::unique_ptr<blink::WebRTCCertificateCallback> observer);
45 48
46 DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator); 49 DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator);
47 }; 50 };
48 51
49 } // namespace content 52 } // namespace content
50 53
51 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ 54 #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