OLD | NEW |
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 class WebRTCCertificateGenerator { | 46 class WebRTCCertificateGenerator { |
47 public: | 47 public: |
48 virtual ~WebRTCCertificateGenerator() {} | 48 virtual ~WebRTCCertificateGenerator() {} |
49 | 49 |
50 // Start generating a certificate asynchronously. |observer| is invoked on t
he | 50 // Start generating a certificate asynchronously. |observer| is invoked on t
he |
51 // same thread that called generateCertificate when the operation is complet
ed. | 51 // same thread that called generateCertificate when the operation is complet
ed. |
52 virtual void generateCertificate( | 52 virtual void generateCertificate( |
53 const WebRTCKeyParams&, | 53 const WebRTCKeyParams&, |
54 const WebURL&, | 54 const WebURL&, |
55 const WebURL& firstPartyForCookies, | 55 const WebURL& firstPartyForCookies, |
56 std::unique_ptr<WebRTCCertificateCallback> observer) | 56 std::unique_ptr<WebRTCCertificateCallback> observer) = 0; |
57 = 0; | 57 virtual void generateCertificateWithExpiration( |
| 58 const WebRTCKeyParams&, |
| 59 const WebURL&, |
| 60 const WebURL& firstPartyForCookies, |
| 61 uint64_t expiresMs, |
| 62 std::unique_ptr<WebRTCCertificateCallback> observer) = 0; |
58 | 63 |
59 // Determines if the parameters are supported by generateCertificate. | 64 // Determines if the parameters are supported by generateCertificate. |
60 // 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 |
61 // may want to reject it for security or performance reasons. | 66 // may want to reject it for security or performance reasons. |
62 virtual bool isSupportedKeyParams(const WebRTCKeyParams&) = 0; | 67 virtual bool isSupportedKeyParams(const WebRTCKeyParams&) = 0; |
63 }; | 68 }; |
64 | 69 |
65 } // namespace blink | 70 } // namespace blink |
66 | 71 |
67 #endif // WebRTCCertificateGenerator_h | 72 #endif // WebRTCCertificateGenerator_h |
OLD | NEW |