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

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

Issue 1740993002: RTCPeerConnection.generateCertificate: Optionally specify expiration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ...and generateCertificateExpires signature Created 4 years, 9 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 /* 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public: 43 public:
44 virtual ~WebRTCCertificateGenerator() {} 44 virtual ~WebRTCCertificateGenerator() {}
45 45
46 // Start generating a certificate asynchronously. The |observer| is invoked on the 46 // Start generating a certificate asynchronously. The |observer| is invoked on the
47 // same thread that called generateCertificate when the operation is complet ed. 47 // same thread that called generateCertificate when the operation is complet ed.
48 virtual void generateCertificate( 48 virtual void generateCertificate(
49 const WebRTCKeyParams&, 49 const WebRTCKeyParams&,
50 const WebURL&, 50 const WebURL&,
51 const WebURL& firstPartyForCookies, 51 const WebURL& firstPartyForCookies,
52 WebCallbacks<WebRTCCertificate*, void>* observer) = 0; 52 WebCallbacks<WebRTCCertificate*, void>* observer) = 0;
53 virtual void generateCertificate(
Ryan Sleevi 2016/03/08 17:06:11 Per Chromium style guide with respect to overloads
hbos_chromium 2016/04/13 17:03:08 Done.
54 const WebRTCKeyParams&,
55 const WebURL&,
56 const WebURL& firstPartyForCookies,
57 uint64_t expiresMs,
58 WebCallbacks<WebRTCCertificate*, void>* observer) = 0;
53 59
54 // Determines if the parameters are supported by generateCertificate. 60 // Determines if the parameters are supported by generateCertificate.
55 // For example, if the number of bits of some parameter is too small or too large we 61 // For example, if the number of bits of some parameter is too small or too large we
56 // may want to reject it for security or performance reasons. 62 // may want to reject it for security or performance reasons.
57 virtual bool isSupportedKeyParams(const WebRTCKeyParams&) = 0; 63 virtual bool isSupportedKeyParams(const WebRTCKeyParams&) = 0;
58 }; 64 };
59 65
60 } // namespace blink 66 } // namespace blink
61 67
62 #endif // WebRTCCertificateGenerator_h 68 #endif // WebRTCCertificateGenerator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698