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

Side by Side Diff: content/public/browser/resource_request_details.h

Issue 2327433002: Stop using CertStore which is not compatible with PlzNavigate. (Closed)
Patch Set: remove cert_store on ios Created 4 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
« no previous file with comments | « content/public/browser/cert_store.h ('k') | content/public/browser/resource_request_details.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) 2012 The Chromium Authors. All rights reserved. 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 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_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/public/common/resource_type.h" 10 #include "content/public/common/resource_type.h"
11 #include "net/base/host_port_pair.h" 11 #include "net/base/host_port_pair.h"
12 #include "net/cert/cert_status_flags.h" 12 #include "net/cert/cert_status_flags.h"
13 #include "net/url_request/url_request_status.h" 13 #include "net/url_request/url_request_status.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace net { 16 namespace net {
17 class URLRequest; 17 class URLRequest;
18 } 18 }
19 19
20 namespace content { 20 namespace content {
21 21
22 // The ResourceRequestDetails object contains additional details about a 22 // The ResourceRequestDetails object contains additional details about a
23 // resource request notification. It copies many of the publicly accessible 23 // resource request notification. It copies many of the publicly accessible
24 // member variables of net::URLRequest, but exists on the UI thread. 24 // member variables of net::URLRequest, but exists on the UI thread.
25 struct ResourceRequestDetails { 25 struct ResourceRequestDetails {
26 ResourceRequestDetails(const net::URLRequest* request, int cert_id); 26 ResourceRequestDetails(const net::URLRequest* request, bool has_certificate);
27 27
28 virtual ~ResourceRequestDetails(); 28 virtual ~ResourceRequestDetails();
29 29
30 GURL url; 30 GURL url;
31 GURL original_url; 31 GURL original_url;
32 std::string method; 32 std::string method;
33 std::string referrer; 33 std::string referrer;
34 bool has_upload; 34 bool has_upload;
35 int load_flags; 35 int load_flags;
36 net::URLRequestStatus status; 36 net::URLRequestStatus status;
37 int ssl_cert_id; 37 bool has_certificate;
38 net::CertStatus ssl_cert_status; 38 net::CertStatus ssl_cert_status;
39 ResourceType resource_type; 39 ResourceType resource_type;
40 net::HostPortPair socket_address; 40 net::HostPortPair socket_address;
41 // HTTP response code. See HttpResponseHeaders::response_code(). 41 // HTTP response code. See HttpResponseHeaders::response_code().
42 // -1 if there are no response headers yet. 42 // -1 if there are no response headers yet.
43 int http_response_code; 43 int http_response_code;
44 }; 44 };
45 45
46 // Details about a redirection of a resource request. 46 // Details about a redirection of a resource request.
47 struct ResourceRedirectDetails : public ResourceRequestDetails { 47 struct ResourceRedirectDetails : public ResourceRequestDetails {
48 ResourceRedirectDetails(const net::URLRequest* request, 48 ResourceRedirectDetails(const net::URLRequest* request,
49 int cert_id, 49 bool has_certificate,
50 const GURL& new_url); 50 const GURL& new_url);
51 ~ResourceRedirectDetails() override; 51 ~ResourceRedirectDetails() override;
52 52
53 // The URL to which we are being redirected. 53 // The URL to which we are being redirected.
54 GURL new_url; 54 GURL new_url;
55 }; 55 };
56 56
57 } // namespace content 57 } // namespace content
58 58
59 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_ 59 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_
OLDNEW
« no previous file with comments | « content/public/browser/cert_store.h ('k') | content/public/browser/resource_request_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698