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

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

Issue 88643002: SignedCertificateTimestamp storing & serialization code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erans_patches
Patch Set: Fixes for eran Created 7 years 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ssl_status.h" 5 #include "content/public/common/ssl_status.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 SignedCertificateTimestampIDAndStatus::SignedCertificateTimestampIDAndStatus(
10 int id, net::SignedCertificateTimestampVerificationStatus status)
11 : id_(id), status_(status) {}
12
13 bool SignedCertificateTimestampIDAndStatus::operator==(
14 const SignedCertificateTimestampIDAndStatus& other) const {
15 return id_ == other.id_ && status_ == other.status_;
16 }
17
9 SSLStatus::SSLStatus() 18 SSLStatus::SSLStatus()
10 : security_style(SECURITY_STYLE_UNKNOWN), 19 : security_style(SECURITY_STYLE_UNKNOWN),
11 cert_id(0), 20 cert_id(0),
12 cert_status(0), 21 cert_status(0),
13 security_bits(-1), 22 security_bits(-1),
14 connection_status(0), 23 connection_status(0),
15 content_status(NORMAL_CONTENT) { 24 content_status(NORMAL_CONTENT),
25 signed_certificate_timestamp_ids() {
16 } 26 }
17 27
28 SSLStatus::~SSLStatus() {}
29
18 } // namespace content 30 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698