OLD | NEW |
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 #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 CrossSiteResourceHandler* cross_site_handler() { | 68 CrossSiteResourceHandler* cross_site_handler() { |
68 return cross_site_handler_; | 69 return cross_site_handler_; |
69 } | 70 } |
70 void set_cross_site_handler(CrossSiteResourceHandler* h) { | 71 void set_cross_site_handler(CrossSiteResourceHandler* h) { |
71 cross_site_handler_ = h; | 72 cross_site_handler_ = h; |
72 } | 73 } |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // accessors above for consistency). | 255 // accessors above for consistency). |
255 bool is_paused_; | 256 bool is_paused_; |
256 bool called_on_response_started_; | 257 bool called_on_response_started_; |
257 bool has_started_reading_; | 258 bool has_started_reading_; |
258 int paused_read_bytes_; | 259 int paused_read_bytes_; |
259 | 260 |
260 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); | 261 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); |
261 }; | 262 }; |
262 | 263 |
263 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H
_ | 264 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H
_ |
OLD | NEW |