~osomon/oxide/ensure-files-exist

« back to all changes in this revision

Viewing changes to qt/core/api/oxideqsslcertificate_p.h

  • Committer: Olivier Tilloy
  • Date: 2014-09-25 16:27:09 UTC
  • mfrom: (677.1.95 oxide)
  • Revision ID: olivier.tilloy@canonical.com-20140925162709-h8bai0f1nfaf7cfy
Merge the latest changes from trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// vim:expandtab:shiftwidth=2:tabstop=2:
 
2
// Copyright (C) 2014 Canonical Ltd.
 
3
 
 
4
// This library is free software; you can redistribute it and/or
 
5
// modify it under the terms of the GNU Lesser General Public
 
6
// License as published by the Free Software Foundation; either
 
7
// version 2.1 of the License, or (at your option) any later version.
 
8
 
 
9
// This library is distributed in the hope that it will be useful,
 
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
// Lesser General Public License for more details.
 
13
 
 
14
// You should have received a copy of the GNU Lesser General Public
 
15
// License along with this library; if not, write to the Free Software
 
16
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 
 
18
#ifndef _OXIDE_QT_CORE_API_SSL_CERTIFICATE_P_H_
 
19
#define _OXIDE_QT_CORE_API_SSL_CERTIFICATE_P_H_
 
20
 
 
21
#include <QtGlobal>
 
22
 
 
23
#include "base/memory/ref_counted.h"
 
24
#include "base/memory/scoped_ptr.h"
 
25
 
 
26
class OxideQSslCertificate;
 
27
 
 
28
namespace net {
 
29
class X509Certificate;
 
30
}
 
31
 
 
32
class OxideQSslCertificatePrivate Q_DECL_FINAL {
 
33
 public:
 
34
  ~OxideQSslCertificatePrivate();
 
35
 
 
36
  static OxideQSslCertificate* Create(
 
37
      const scoped_refptr<net::X509Certificate>& cert,
 
38
      QObject* parent = NULL);
 
39
 
 
40
 private:
 
41
  friend class OxideQSslCertificate;
 
42
 
 
43
  OxideQSslCertificatePrivate(const scoped_refptr<net::X509Certificate>& cert);
 
44
 
 
45
  scoped_refptr<net::X509Certificate> x509_cert_;
 
46
  mutable scoped_ptr<OxideQSslCertificate> issuer_;
 
47
};
 
48
 
 
49
#endif // _OXIDE_QT_CORE_API_SSL_CERTIFICATE_P_H_