Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: content/browser/ssl/ssl_request_info.h

Issue 2214793002: Remove unnecessary SSLRequestInfo class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 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_BROWSER_SSL_SSL_REQUEST_INFO_H_
6 #define CONTENT_BROWSER_SSL_SSL_REQUEST_INFO_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h"
12 #include "content/public/common/resource_type.h"
13 #include "net/cert/cert_status_flags.h"
14 #include "url/gurl.h"
15
16 namespace content {
17
18 // SSLRequestInfo wraps up the information SSLPolicy needs about a request in
19 // order to update our security UI. SSLRequestInfo is RefCounted in case we
20 // need to deal with the request asynchronously.
21 class SSLRequestInfo : public base::RefCounted<SSLRequestInfo> {
22 public:
23 SSLRequestInfo(const GURL& url,
24 ResourceType resource_type,
25 int ssl_cert_id,
26 net::CertStatus ssl_cert_status);
27
28 const GURL& url() const { return url_; }
29 ResourceType resource_type() const { return resource_type_; }
30 int ssl_cert_id() const { return ssl_cert_id_; }
31 net::CertStatus ssl_cert_status() const { return ssl_cert_status_; }
32
33 private:
34 friend class base::RefCounted<SSLRequestInfo>;
35
36 virtual ~SSLRequestInfo();
37
38 GURL url_;
39 ResourceType resource_type_;
40 int ssl_cert_id_;
41 net::CertStatus ssl_cert_status_;
42
43 DISALLOW_COPY_AND_ASSIGN(SSLRequestInfo);
44 };
45
46 } // namespace content
47
48 #endif // CONTENT_BROWSER_SSL_SSL_REQUEST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698