#ifndef CHROME_BROWSER_UI_VIEWS_SIGNED_CERTIFICATE_TIMESTAMP_INFO_VIEW_H_
#define CHROME_BROWSER_UI_VIEWS_SIGNED_CERTIFICATE_TIMESTAMP_INFO_VIEW_H_
#include <vector>
#include "net/cert/sct_status_flags.h"
#include "ui/views/view.h"
namespace views {
class GridLayout;
class Label;
}
namespace net {
namespace ct {
struct SignedCertificateTimestamp;
}
}
namespace chrome {
namespace ct {
int StatusToResourceID(net::ct::SCTVerifyStatus status);
int SCTOriginToResourceID(const net::ct::SignedCertificateTimestamp& sct);
}
}
class SignedCertificateTimestampInfoView : public views::View {
public:
SignedCertificateTimestampInfoView();
virtual ~SignedCertificateTimestampInfoView();
void SetSignedCertificateTimestamp(
const net::ct::SignedCertificateTimestamp& sct,
net::ct::SCTVerifyStatus status);
void ClearDisplay();
private:
virtual void ViewHierarchyChanged(const ViewHierarchyChangedDetails& details)
OVERRIDE;
void AddLabelRow(int layout_id,
views::GridLayout* layout,
int label_message_id,
views::Label* data_label);
void Init();
views::Label* status_value_field_;
views::Label* origin_value_field_;
views::Label* version_value_field_;
views::Label* log_description_value_field_;
views::Label* log_id_value_field_;
views::Label* timestamp_value_field_;
views::Label* hash_algorithm_value_field_;
views::Label* signature_algorithm_value_field_;
views::Label* signature_data_value_field_;
DISALLOW_COPY_AND_ASSIGN(SignedCertificateTimestampInfoView);
};
#endif