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

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

Issue 113391: Refactor the inner classes from SSLManager to their own files to reduce the c... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
OLDNEW
(Empty)
1 // Copyright (c) 2009 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 CHROME_BROWSER_SSL_SSL_REQUEST_INFO_H_
6 #define CHROME_BROWSER_SSL_SSL_REQUEST_INFO_H_
7
8 #include <string>
9
10 #include "chrome/common/filter_policy.h"
11 #include "googleurl/src/gurl.h"
12 #include "webkit/glue/resource_type.h"
13
14 class SSLManager;
15
16 // SSLRequestInfo wraps up the information SSLPolicy needs about a request in
17 // order to update our security IU. SSLRequestInfo is RefCounted in case we
18 // need to deal with the request asynchronously.
19 class SSLRequestInfo : public base::RefCounted<SSLRequestInfo> {
20 public:
21 SSLRequestInfo(SSLManager* manager,
22 const GURL& url,
23 ResourceType::Type resource_type,
24 const std::string& frame_origin,
25 const std::string& main_frame_origin,
26 FilterPolicy::Type filter_policy,
27 int pid,
28 int ssl_cert_id,
29 int ssl_cert_status)
30 : manager_(manager),
31 url_(url),
32 resource_type_(resource_type),
33 frame_origin_(frame_origin),
34 main_frame_origin_(main_frame_origin),
35 filter_policy_(filter_policy),
36 pid_(pid),
37 ssl_cert_id_(ssl_cert_id),
38 ssl_cert_status_(ssl_cert_status) {
39 }
40
41 SSLManager* manager() const { return manager_; }
42 const GURL& url() const { return url_; }
43 ResourceType::Type resource_type() const { return resource_type_; }
44 const std::string& frame_origin() const { return frame_origin_; }
45 const std::string& main_frame_origin() const { return main_frame_origin_; }
46 FilterPolicy::Type filter_policy() const { return filter_policy_; }
47 int pid() const { return pid_; }
48 int ssl_cert_id() const { return ssl_cert_id_; }
49 int ssl_cert_status() const { return ssl_cert_status_; }
50
51 private:
52 SSLManager* manager_;
53 GURL url_;
54 ResourceType::Type resource_type_;
55 std::string frame_origin_;
56 std::string main_frame_origin_;
57 FilterPolicy::Type filter_policy_;
58 int pid_;
59 int ssl_cert_id_;
60 int ssl_cert_status_;
61
62 DISALLOW_COPY_AND_ASSIGN(SSLRequestInfo);
63 };
64
65 #endif // CHROME_BROWSER_SSL_SSL_REQUEST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698