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

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

Issue 1932173002: RTCCertificate equals method for testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved equals test function to internals 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/Source/modules/modules.gypi ('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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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 WebRTCCertificate_h 5 #ifndef WebRTCCertificate_h
6 #define WebRTCCertificate_h 6 #define WebRTCCertificate_h
7 7
8 #include "public/platform/WebRTCKeyParams.h" 8 #include "public/platform/WebRTCKeyParams.h"
9 9
10 #include <memory> 10 #include <memory>
(...skipping 13 matching lines...) Expand all
24 // Copies the WebRTCCertificate object without copying the underlying implem entation 24 // Copies the WebRTCCertificate object without copying the underlying implem entation
25 // specific (WebRTC layer) certificate. When all copies are destroyed the un derlying 25 // specific (WebRTC layer) certificate. When all copies are destroyed the un derlying
26 // data is freed. 26 // data is freed.
27 virtual std::unique_ptr<WebRTCCertificate> shallowCopy() const = 0; 27 virtual std::unique_ptr<WebRTCCertificate> shallowCopy() const = 0;
28 28
29 virtual const WebRTCKeyParams& keyParams() const = 0; 29 virtual const WebRTCKeyParams& keyParams() const = 0;
30 30
31 // Returns the expiration time in ms relative to epoch, 1970-01-01T00:00:00Z . 31 // Returns the expiration time in ms relative to epoch, 1970-01-01T00:00:00Z .
32 virtual uint64_t expires() const = 0; 32 virtual uint64_t expires() const = 0;
33 33
34 // Checks if the two certificate objects represent the same certificate valu e,
35 // as should be the case for a clone and the original.
36 virtual bool equals(const WebRTCCertificate& other) const = 0;
37
34 private: 38 private:
35 WebRTCCertificate(const WebRTCCertificate&) = delete; 39 WebRTCCertificate(const WebRTCCertificate&) = delete;
36 WebRTCCertificate& operator=(const WebRTCCertificate&) = delete; 40 WebRTCCertificate& operator=(const WebRTCCertificate&) = delete;
37 }; 41 };
38 42
39 } // namespace blink 43 } // namespace blink
40 44
41 #endif // WebRTCCertificate_h 45 #endif // WebRTCCertificate_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698