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.
5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_
10 #include "googleurl/src/gurl.h"
11 #include "net/cert/cert_status_flags.h"
12 #include "net/base/host_port_pair.h"
13 #include "net/url_request/url_request_status.h"
14 #include "webkit/glue/resource_type.h"
22 // The ResourceRequestDetails object contains additional details about a
23 // resource request notification. It copies many of the publicly accessible
24 // member variables of net::URLRequest, but exists on the UI thread.
25 struct ResourceRequestDetails
{
26 ResourceRequestDetails(const net::URLRequest
* request
, int cert_id
);
28 virtual ~ResourceRequestDetails();
38 net::URLRequestStatus status
;
40 net::CertStatus ssl_cert_status
;
41 ResourceType::Type resource_type
;
42 net::HostPortPair socket_address
;
46 // Details about a redirection of a resource request.
47 struct ResourceRedirectDetails
: public ResourceRequestDetails
{
48 ResourceRedirectDetails(const net::URLRequest
* request
,
51 virtual ~ResourceRedirectDetails();
53 // The URL to which we are being redirected.
57 } // namespace content
59 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_