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

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

Issue 20066: Move resource_message_filter and resource_request_details to the renderer_hos... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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
Property Changes:
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/chrome/browser/resource_request_details.h:r69-2775
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 URLRequest, but exists on the UI thread. 7 // of URLRequest, but exists on the UI thread.
8 8
9 #ifndef CHROME_BROWSER_RESOURCE_REQUEST_DETAILS_H__ 9 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_
10 #define CHROME_BROWSER_RESOURCE_REQUEST_DETAILS_H__ 10 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "chrome/browser/cert_store.h" 15 #include "chrome/browser/cert_store.h"
16 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 16 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "net/url_request/url_request.h" 18 #include "net/url_request/url_request.h"
19 #include "net/url_request/url_request_status.h" 19 #include "net/url_request/url_request_status.h"
20 20
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 std::string method_; 57 std::string method_;
58 std::string referrer_; 58 std::string referrer_;
59 bool has_upload_; 59 bool has_upload_;
60 int load_flags_; 60 int load_flags_;
61 int origin_pid_; 61 int origin_pid_;
62 URLRequestStatus status_; 62 URLRequestStatus status_;
63 int ssl_cert_id_; 63 int ssl_cert_id_;
64 int ssl_cert_status_; 64 int ssl_cert_status_;
65 ResourceType::Type resource_type_; 65 ResourceType::Type resource_type_;
66 66
67 DISALLOW_EVIL_CONSTRUCTORS(ResourceRequestDetails); 67 DISALLOW_COPY_AND_ASSIGN(ResourceRequestDetails);
68 }; 68 };
69 69
70 // Details about a redirection of a resource request. 70 // Details about a redirection of a resource request.
71 class ResourceRedirectDetails : public ResourceRequestDetails { 71 class ResourceRedirectDetails : public ResourceRequestDetails {
72 public: 72 public:
73 ResourceRedirectDetails(const URLRequest* request, 73 ResourceRedirectDetails(const URLRequest* request,
74 int cert_id, 74 int cert_id,
75 const GURL& new_url) 75 const GURL& new_url)
76 : ResourceRequestDetails(request, cert_id), 76 : ResourceRequestDetails(request, cert_id),
77 new_url_(new_url) { } 77 new_url_(new_url) { }
78 78
79 // The URL to which we are being redirected. 79 // The URL to which we are being redirected.
80 const GURL& new_url() const { return new_url_; } 80 const GURL& new_url() const { return new_url_; }
81 81
82 private: 82 private:
83 GURL new_url_; 83 GURL new_url_;
84 }; 84 };
85 85
86 #endif // CHROME_BROWSER_RESOURCE_REQUEST_DETAILS_H__ 86 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_
87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698