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 3// found in the LICENSE file. 4 5#ifndef CONTENT_PUBLIC_COMMON_SIGNED_CERTIFICATE_TIMESTAMP_ID_AND_STATUS_H_ 6#define CONTENT_PUBLIC_COMMON_SIGNED_CERTIFICATE_TIMESTAMP_ID_AND_STATUS_H_ 7 8#include <vector> 9 10#include "content/common/content_export.h" 11#include "net/cert/sct_status_flags.h" 12 13namespace content { 14 15// Holds the ID of a SignedCertificateTimestamp (as assigned by 16// SignedCertificateTimestampStore), and its verification status. 17struct CONTENT_EXPORT SignedCertificateTimestampIDAndStatus { 18 SignedCertificateTimestampIDAndStatus( 19 int id, net::ct::SCTVerifyStatus status); 20 21 bool operator==(const SignedCertificateTimestampIDAndStatus& other) const; 22 23 int id; 24 net::ct::SCTVerifyStatus status; 25}; 26 27typedef std::vector<SignedCertificateTimestampIDAndStatus> 28 SignedCertificateTimestampIDStatusList; 29 30} // namespace content 31 32#endif // CONTENT_PUBLIC_COMMON_SIGNED_CERTIFICATE_TIMESTAMP_ID_AND_STATUS_H_ 33