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

Side by Side Diff: third_party/WebKit/public/platform/WebRTCCertificateGenerator.h

Issue 1909923002: Making RTCCertificate cloneable (WIP). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Derp! 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
« no previous file with comments | « third_party/WebKit/public/platform/WebRTCCertificate.h ('k') | no next file » | 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 * Copyright (C) 2015 Google Inc. All rights reserved. 2 * Copyright (C) 2015 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const WebRTCKeyParams&, 58 const WebRTCKeyParams&,
59 const WebURL&, 59 const WebURL&,
60 const WebURL& firstPartyForCookies, 60 const WebURL& firstPartyForCookies,
61 uint64_t expiresMs, 61 uint64_t expiresMs,
62 std::unique_ptr<WebRTCCertificateCallback> observer) = 0; 62 std::unique_ptr<WebRTCCertificateCallback> observer) = 0;
63 63
64 // Determines if the parameters are supported by generateCertificate. 64 // Determines if the parameters are supported by generateCertificate.
65 // For example, if the number of bits of some parameter is too small or too large we 65 // For example, if the number of bits of some parameter is too small or too large we
66 // may want to reject it for security or performance reasons. 66 // may want to reject it for security or performance reasons.
67 virtual bool isSupportedKeyParams(const WebRTCKeyParams&) = 0; 67 virtual bool isSupportedKeyParams(const WebRTCKeyParams&) = 0;
68
69 // Creates a certificate from the PEM strings. See also |WebRTCCertificate:: toPEM|.
70 virtual std::unique_ptr<WebRTCCertificate> fromPEM(
71 const std::string& pemPrivateKey,
72 const std::string& pemCertificate) = 0;
68 }; 73 };
69 74
70 } // namespace blink 75 } // namespace blink
71 76
72 #endif // WebRTCCertificateGenerator_h 77 #endif // WebRTCCertificateGenerator_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebRTCCertificate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698