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

Side by Side Diff: chrome/browser/renderer_host/resource_request_details.h

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove "httpsv" scheme, minor NSS/OpenSSL changes Created 9 years, 8 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
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 // The ResourceRequestDetails object contains additional details about a 5 // The ResourceRequestDetails object contains additional details about a
6 // resource request. It copies many of the publicly accessible member variables 6 // resource request. It copies many of the publicly accessible member variables
7 // of net::URLRequest, but exists on the UI thread. 7 // of net::URLRequest, but exists on the UI thread.
8 8
9 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ 9 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_
10 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ 10 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_
(...skipping 21 matching lines...) Expand all
32 const std::string& method() const { return method_; } 32 const std::string& method() const { return method_; }
33 const std::string& referrer() const { return referrer_; } 33 const std::string& referrer() const { return referrer_; }
34 const std::string& frame_origin() const { return frame_origin_; } 34 const std::string& frame_origin() const { return frame_origin_; }
35 const std::string& main_frame_origin() const { return main_frame_origin_; } 35 const std::string& main_frame_origin() const { return main_frame_origin_; }
36 bool has_upload() const { return has_upload_; } 36 bool has_upload() const { return has_upload_; }
37 int load_flags() const { return load_flags_; } 37 int load_flags() const { return load_flags_; }
38 int origin_child_id() const { return origin_child_id_; } 38 int origin_child_id() const { return origin_child_id_; }
39 const net::URLRequestStatus& status() const { return status_; } 39 const net::URLRequestStatus& status() const { return status_; }
40 int ssl_cert_id() const { return ssl_cert_id_; } 40 int ssl_cert_id() const { return ssl_cert_id_; }
41 int ssl_cert_status() const { return ssl_cert_status_; } 41 int ssl_cert_status() const { return ssl_cert_status_; }
42 string16 tls_username() const { return tls_username_; }
42 ResourceType::Type resource_type() const { return resource_type_; } 43 ResourceType::Type resource_type() const { return resource_type_; }
43 44
44 private: 45 private:
45 GURL url_; 46 GURL url_;
46 GURL original_url_; 47 GURL original_url_;
47 std::string method_; 48 std::string method_;
48 std::string referrer_; 49 std::string referrer_;
49 std::string frame_origin_; 50 std::string frame_origin_;
50 std::string main_frame_origin_; 51 std::string main_frame_origin_;
51 bool has_upload_; 52 bool has_upload_;
52 int load_flags_; 53 int load_flags_;
53 int origin_child_id_; 54 int origin_child_id_;
54 net::URLRequestStatus status_; 55 net::URLRequestStatus status_;
55 int ssl_cert_id_; 56 int ssl_cert_id_;
56 int ssl_cert_status_; 57 int ssl_cert_status_;
58 string16 tls_username_;
57 ResourceType::Type resource_type_; 59 ResourceType::Type resource_type_;
58 }; 60 };
59 61
60 // Details about a redirection of a resource request. 62 // Details about a redirection of a resource request.
61 class ResourceRedirectDetails : public ResourceRequestDetails { 63 class ResourceRedirectDetails : public ResourceRequestDetails {
62 public: 64 public:
63 ResourceRedirectDetails(const net::URLRequest* request, 65 ResourceRedirectDetails(const net::URLRequest* request,
64 int cert_id, 66 int cert_id,
65 const GURL& new_url); 67 const GURL& new_url);
66 virtual ~ResourceRedirectDetails(); 68 virtual ~ResourceRedirectDetails();
67 69
68 // The URL to which we are being redirected. 70 // The URL to which we are being redirected.
69 const GURL& new_url() const { return new_url_; } 71 const GURL& new_url() const { return new_url_; }
70 72
71 private: 73 private:
72 GURL new_url_; 74 GURL new_url_;
73 }; 75 };
74 76
75 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ 77 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host.cc ('k') | chrome/browser/renderer_host/resource_request_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698