blob: eea3d251ac9a22eaacbf3a8c0c894543563c540d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_NOTIFICATION_DETAILS_H_
#define CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_NOTIFICATION_DETAILS_H_
#include "base/basictypes.h"
namespace net {
class X509Certificate;
class SSLCertRequestInfo;
}
class SSLClientAuthNotificationDetails {
public:
SSLClientAuthNotificationDetails(
const net::SSLCertRequestInfo* cert_request_info,
net::X509Certificate* selected_cert);
bool IsSameHost(const net::SSLCertRequestInfo* cert_request_info) const;
net::X509Certificate* selected_cert() const { return selected_cert_; }
private:
// Notifications are synchronous, so we don't need to hold our own references.
const net::SSLCertRequestInfo* cert_request_info_;
net::X509Certificate* selected_cert_;
DISALLOW_COPY_AND_ASSIGN(SSLClientAuthNotificationDetails);
};
#endif // CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_NOTIFICATION_DETAILS_H_
|