OLD | NEW |
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_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 uint64 upload_size, | 53 uint64 upload_size, |
54 bool is_download, | 54 bool is_download, |
55 bool allow_download, | 55 bool allow_download, |
56 bool has_user_gesture, | 56 bool has_user_gesture, |
57 WebKit::WebReferrerPolicy referrer_policy, | 57 WebKit::WebReferrerPolicy referrer_policy, |
58 const content::ResourceContext* context); | 58 const content::ResourceContext* context); |
59 virtual ~ResourceDispatcherHostRequestInfo(); | 59 virtual ~ResourceDispatcherHostRequestInfo(); |
60 | 60 |
61 // Top-level ResourceHandler servicing this request. | 61 // Top-level ResourceHandler servicing this request. |
62 ResourceHandler* resource_handler() { return resource_handler_.get(); } | 62 ResourceHandler* resource_handler() { return resource_handler_.get(); } |
| 63 void set_resource_handler(ResourceHandler* resource_handler); |
63 | 64 |
64 // CrossSiteResourceHandler for this request, if it is a cross-site request. | 65 // CrossSiteResourceHandler for this request, if it is a cross-site request. |
65 // (NULL otherwise.) This handler is part of the chain of ResourceHandlers | 66 // (NULL otherwise.) This handler is part of the chain of ResourceHandlers |
66 // pointed to by resource_handler, and is not owned by this class. | 67 // pointed to by resource_handler, and is not owned by this class. |
67 content::CrossSiteResourceHandler* cross_site_handler() { | 68 content::CrossSiteResourceHandler* cross_site_handler() { |
68 return cross_site_handler_; | 69 return cross_site_handler_; |
69 } | 70 } |
70 void set_cross_site_handler(content::CrossSiteResourceHandler* h) { | 71 void set_cross_site_handler(content::CrossSiteResourceHandler* h) { |
71 cross_site_handler_ = h; | 72 cross_site_handler_ = h; |
72 } | 73 } |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // accessors above for consistency). | 258 // accessors above for consistency). |
258 bool is_paused_; | 259 bool is_paused_; |
259 bool called_on_response_started_; | 260 bool called_on_response_started_; |
260 bool has_started_reading_; | 261 bool has_started_reading_; |
261 int paused_read_bytes_; | 262 int paused_read_bytes_; |
262 | 263 |
263 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); | 264 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); |
264 }; | 265 }; |
265 | 266 |
266 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H
_ | 267 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H
_ |
OLD | NEW |