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

Side by Side Diff: content/public/common/signed_certificate_timestamp_id_and_status.cc

Issue 1772603002: Addition of Certificate Transparency details to Security panel of DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/public/common/signed_certificate_timestamp_id_and_status.h" 5 #include "content/public/common/signed_certificate_timestamp_id_and_status.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 SignedCertificateTimestampIDAndStatus::SignedCertificateTimestampIDAndStatus( 9 SignedCertificateTimestampIDAndStatus::SignedCertificateTimestampIDAndStatus(
10 int id, net::ct::SCTVerifyStatus status) 10 int id,
11 : id(id), status(status) {} 11 net::ct::SCTVerifyStatus status,
12 net::ct::SignedCertificateTimestamp::Version version,
13 std::string logId,
14 int64_t timestamp,
15 net::ct::DigitallySigned signature,
16 net::ct::SignedCertificateTimestamp::Origin origin,
17 std::string logDescription)
18 : id(id)
19 , status(status)
20 , version(version)
21 , logId(logId)
22 , timestamp(timestamp)
23 , signature(signature)
24 , origin(origin)
25 , logDescription(logDescription)
26 {
27 }
12 28
13 bool SignedCertificateTimestampIDAndStatus::operator==( 29 bool SignedCertificateTimestampIDAndStatus::operator==(
14 const SignedCertificateTimestampIDAndStatus& other) const { 30 const SignedCertificateTimestampIDAndStatus& other) const {
15 return id == other.id && status == other.status; 31 return id == other.id && status == other.status;
32 // TODO also compare sct?
16 } 33 }
17 34
18 } // namespace content 35 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698