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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCCertificate.h

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef RTCCertificate_h 31 #ifndef RTCCertificate_h
32 #define RTCCertificate_h 32 #define RTCCertificate_h
33 33
34 #include <memory>
34 #include "bindings/core/v8/ScriptWrappable.h" 35 #include "bindings/core/v8/ScriptWrappable.h"
35 #include "core/dom/DOMTimeStamp.h" 36 #include "core/dom/DOMTimeStamp.h"
36 #include "modules/ModulesExport.h" 37 #include "modules/ModulesExport.h"
37 #include "platform/heap/GarbageCollected.h" 38 #include "platform/heap/GarbageCollected.h"
38 #include "public/platform/WebRTCCertificate.h" 39 #include "public/platform/WebRTCCertificate.h"
39 #include <memory>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class MODULES_EXPORT RTCCertificate final 43 class MODULES_EXPORT RTCCertificate final
44 : public GarbageCollectedFinalized<RTCCertificate>, 44 : public GarbageCollectedFinalized<RTCCertificate>,
45 public ScriptWrappable { 45 public ScriptWrappable {
46 DEFINE_WRAPPERTYPEINFO(); 46 DEFINE_WRAPPERTYPEINFO();
47 47
48 public: 48 public:
49 // Takes ownership of the certificate. 49 // Takes ownership of the certificate.
50 RTCCertificate(std::unique_ptr<WebRTCCertificate>); 50 RTCCertificate(std::unique_ptr<WebRTCCertificate>);
51 51
52 // Returns a new WebRTCCertificate shallow copy. 52 // Returns a new WebRTCCertificate shallow copy.
53 std::unique_ptr<WebRTCCertificate> certificateShallowCopy() const; 53 std::unique_ptr<WebRTCCertificate> certificateShallowCopy() const;
54 const WebRTCCertificate& certificate() const { return *m_certificate; } 54 const WebRTCCertificate& certificate() const { return *m_certificate; }
55 55
56 DEFINE_INLINE_TRACE() {} 56 DEFINE_INLINE_TRACE() {}
57 57
58 // Returns the expiration time in ms relative to epoch, 1970-01-01T00:00:00Z. 58 // Returns the expiration time in ms relative to epoch, 1970-01-01T00:00:00Z.
59 DOMTimeStamp expires() const; 59 DOMTimeStamp expires() const;
60 60
61 private: 61 private:
62 std::unique_ptr<WebRTCCertificate> m_certificate; 62 std::unique_ptr<WebRTCCertificate> m_certificate;
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // RTCCertificate_h 67 #endif // RTCCertificate_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698