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_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ |
6 #define CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ | 6 #define CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 bool has_user_gesture, | 59 bool has_user_gesture, |
60 bool enable_load_timing, | 60 bool enable_load_timing, |
61 bool enable_upload_progress, | 61 bool enable_upload_progress, |
62 bool do_not_prompt_for_login, | 62 bool do_not_prompt_for_login, |
63 blink::WebReferrerPolicy referrer_policy, | 63 blink::WebReferrerPolicy referrer_policy, |
64 blink::WebPageVisibilityState visibility_state, | 64 blink::WebPageVisibilityState visibility_state, |
65 ResourceContext* context, | 65 ResourceContext* context, |
66 base::WeakPtr<ResourceMessageFilter> filter, | 66 base::WeakPtr<ResourceMessageFilter> filter, |
67 bool report_raw_headers, | 67 bool report_raw_headers, |
68 bool is_async, | 68 bool is_async, |
69 bool is_using_lofi); | 69 bool is_using_lofi, |
| 70 const std::string& original_headers); |
70 ~ResourceRequestInfoImpl() override; | 71 ~ResourceRequestInfoImpl() override; |
71 | 72 |
72 // ResourceRequestInfo implementation: | 73 // ResourceRequestInfo implementation: |
73 ResourceContext* GetContext() const override; | 74 ResourceContext* GetContext() const override; |
74 int GetChildID() const override; | 75 int GetChildID() const override; |
75 int GetRouteID() const override; | 76 int GetRouteID() const override; |
76 int GetOriginPID() const override; | 77 int GetOriginPID() const override; |
77 int GetRequestID() const override; | 78 int GetRequestID() const override; |
78 int GetRenderFrameID() const override; | 79 int GetRenderFrameID() const override; |
79 bool IsMainFrame() const override; | 80 bool IsMainFrame() const override; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 void set_memory_cost(int cost) { memory_cost_ = cost; } | 176 void set_memory_cost(int cost) { memory_cost_ = cost; } |
176 | 177 |
177 bool is_load_timing_enabled() const { return enable_load_timing_; } | 178 bool is_load_timing_enabled() const { return enable_load_timing_; } |
178 | 179 |
179 bool is_upload_progress_enabled() const { return enable_upload_progress_; } | 180 bool is_upload_progress_enabled() const { return enable_upload_progress_; } |
180 | 181 |
181 bool do_not_prompt_for_login() const { return do_not_prompt_for_login_; } | 182 bool do_not_prompt_for_login() const { return do_not_prompt_for_login_; } |
182 void set_do_not_prompt_for_login(bool do_not_prompt) { | 183 void set_do_not_prompt_for_login(bool do_not_prompt) { |
183 do_not_prompt_for_login_ = do_not_prompt; | 184 do_not_prompt_for_login_ = do_not_prompt; |
184 } | 185 } |
| 186 const std::string& original_headers() const { return original_headers_; } |
185 | 187 |
186 private: | 188 private: |
187 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, | 189 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, |
188 DeletedFilterDetached); | 190 DeletedFilterDetached); |
189 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, | 191 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, |
190 DeletedFilterDetachedRedirect); | 192 DeletedFilterDetachedRedirect); |
191 // Non-owning, may be NULL. | 193 // Non-owning, may be NULL. |
192 CrossSiteResourceHandler* cross_site_handler_; | 194 CrossSiteResourceHandler* cross_site_handler_; |
193 DetachableResourceHandler* detachable_handler_; | 195 DetachableResourceHandler* detachable_handler_; |
194 | 196 |
(...skipping 22 matching lines...) Expand all Loading... |
217 int memory_cost_; | 219 int memory_cost_; |
218 blink::WebReferrerPolicy referrer_policy_; | 220 blink::WebReferrerPolicy referrer_policy_; |
219 blink::WebPageVisibilityState visibility_state_; | 221 blink::WebPageVisibilityState visibility_state_; |
220 ResourceContext* context_; | 222 ResourceContext* context_; |
221 // The filter might be deleted without deleting this object if the process | 223 // The filter might be deleted without deleting this object if the process |
222 // exits during a transfer. | 224 // exits during a transfer. |
223 base::WeakPtr<ResourceMessageFilter> filter_; | 225 base::WeakPtr<ResourceMessageFilter> filter_; |
224 bool report_raw_headers_; | 226 bool report_raw_headers_; |
225 bool is_async_; | 227 bool is_async_; |
226 bool is_using_lofi_; | 228 bool is_using_lofi_; |
| 229 const std::string original_headers_; |
227 | 230 |
228 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); | 231 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); |
229 }; | 232 }; |
230 | 233 |
231 } // namespace content | 234 } // namespace content |
232 | 235 |
233 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ | 236 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ |
OLD | NEW |