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

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

Issue 7995014: Revert 102322 - For the SSL cert status, convert anonymous enum that gives bit values into a type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/ssl/ssl_policy.cc ('k') | content/browser/ssl/ssl_request_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SSL_SSL_REQUEST_INFO_H_ 5 #ifndef CONTENT_BROWSER_SSL_SSL_REQUEST_INFO_H_
6 #define CONTENT_BROWSER_SSL_SSL_REQUEST_INFO_H_ 6 #define CONTENT_BROWSER_SSL_SSL_REQUEST_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "net/base/cert_status_flags.h"
14 #include "webkit/glue/resource_type.h" 13 #include "webkit/glue/resource_type.h"
15 14
16 // SSLRequestInfo wraps up the information SSLPolicy needs about a request in 15 // SSLRequestInfo wraps up the information SSLPolicy needs about a request in
17 // order to update our security IU. SSLRequestInfo is RefCounted in case we 16 // order to update our security IU. SSLRequestInfo is RefCounted in case we
18 // need to deal with the request asynchronously. 17 // need to deal with the request asynchronously.
19 class SSLRequestInfo : public base::RefCounted<SSLRequestInfo> { 18 class SSLRequestInfo : public base::RefCounted<SSLRequestInfo> {
20 public: 19 public:
21 SSLRequestInfo(const GURL& url, 20 SSLRequestInfo(const GURL& url,
22 ResourceType::Type resource_type, 21 ResourceType::Type resource_type,
23 int child_id, 22 int child_id,
24 int ssl_cert_id, 23 int ssl_cert_id,
25 net::CertStatus ssl_cert_status); 24 int ssl_cert_status);
26 25
27 const GURL& url() const { return url_; } 26 const GURL& url() const { return url_; }
28 ResourceType::Type resource_type() const { return resource_type_; } 27 ResourceType::Type resource_type() const { return resource_type_; }
29 int child_id() const { return child_id_; } 28 int child_id() const { return child_id_; }
30 int ssl_cert_id() const { return ssl_cert_id_; } 29 int ssl_cert_id() const { return ssl_cert_id_; }
31 net::CertStatus ssl_cert_status() const { return ssl_cert_status_; } 30 int ssl_cert_status() const { return ssl_cert_status_; }
32 31
33 private: 32 private:
34 friend class base::RefCounted<SSLRequestInfo>; 33 friend class base::RefCounted<SSLRequestInfo>;
35 34
36 virtual ~SSLRequestInfo(); 35 virtual ~SSLRequestInfo();
37 36
38 GURL url_; 37 GURL url_;
39 ResourceType::Type resource_type_; 38 ResourceType::Type resource_type_;
40 int child_id_; 39 int child_id_;
41 int ssl_cert_id_; 40 int ssl_cert_id_;
42 net::CertStatus ssl_cert_status_; 41 int ssl_cert_status_;
43 42
44 DISALLOW_COPY_AND_ASSIGN(SSLRequestInfo); 43 DISALLOW_COPY_AND_ASSIGN(SSLRequestInfo);
45 }; 44 };
46 45
47 #endif // CONTENT_BROWSER_SSL_SSL_REQUEST_INFO_H_ 46 #endif // CONTENT_BROWSER_SSL_SSL_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_policy.cc ('k') | content/browser/ssl/ssl_request_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698