~osomon/oxide/ensure-files-exist

« back to all changes in this revision

Viewing changes to qt/core/api/oxideqcertificateerror_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_CERTIFICATE_ERROR_P_H_
 
19
#define _OXIDE_QT_CORE_API_CERTIFICATE_ERROR_P_H_
 
20
 
 
21
#include <QtGlobal>
 
22
#include <QUrl>
 
23
 
 
24
#include "base/memory/scoped_ptr.h"
 
25
 
 
26
#include "qt/core/api/oxideqcertificateerror.h"
 
27
 
 
28
namespace oxide {
 
29
class SimplePermissionRequest;
 
30
}
 
31
 
 
32
class OxideQSslCertificate;
 
33
 
 
34
class OxideQCertificateErrorPrivate Q_DECL_FINAL {
 
35
  Q_DECLARE_PUBLIC(OxideQCertificateError)
 
36
 
 
37
 public:
 
38
  ~OxideQCertificateErrorPrivate();
 
39
 
 
40
  static OxideQCertificateError* Create(
 
41
      const QUrl& url,
 
42
      bool is_main_frame,
 
43
      bool is_subresource,
 
44
      bool strict_enforcement,
 
45
      scoped_ptr<OxideQSslCertificate> certificate,
 
46
      OxideQCertificateError::Error cert_error,
 
47
      scoped_ptr<oxide::SimplePermissionRequest> request,
 
48
      QObject* parent = NULL);
 
49
 
 
50
 private:
 
51
  OxideQCertificateErrorPrivate(
 
52
      const QUrl& url,
 
53
      bool is_main_frame,
 
54
      bool is_subresource,
 
55
      bool strict_enforcement,
 
56
      scoped_ptr<OxideQSslCertificate> certificate,
 
57
      OxideQCertificateError::Error cert_error,
 
58
      scoped_ptr<oxide::SimplePermissionRequest> request);
 
59
 
 
60
  void OnCancel();
 
61
  void respond(bool accept);
 
62
 
 
63
  OxideQCertificateError* q_ptr;
 
64
 
 
65
  QUrl url_;
 
66
  bool is_main_frame_;
 
67
  bool is_subresource_;
 
68
  bool strict_enforcement_;
 
69
  scoped_ptr<OxideQSslCertificate> certificate_;
 
70
  OxideQCertificateError::Error cert_error_;
 
71
  scoped_ptr<oxide::SimplePermissionRequest> request_;
 
72
 
 
73
  bool did_respond_;
 
74
  bool is_cancelled_;
 
75
};
 
76
 
 
77
#endif // _OXIDE_QT_CORE_API_CERTIFICATE_ERROR_P_H_