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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 bool is_stream, | 57 bool is_stream, |
58 bool allow_download, | 58 bool allow_download, |
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 is_async); | 67 bool is_async, |
| 68 const std::string& original_headers); |
68 ~ResourceRequestInfoImpl() override; | 69 ~ResourceRequestInfoImpl() override; |
69 | 70 |
70 // ResourceRequestInfo implementation: | 71 // ResourceRequestInfo implementation: |
71 ResourceContext* GetContext() const override; | 72 ResourceContext* GetContext() const override; |
72 int GetChildID() const override; | 73 int GetChildID() const override; |
73 int GetRouteID() const override; | 74 int GetRouteID() const override; |
74 int GetOriginPID() const override; | 75 int GetOriginPID() const override; |
75 int GetRequestID() const override; | 76 int GetRequestID() const override; |
76 int GetRenderFrameID() const override; | 77 int GetRenderFrameID() const override; |
77 bool IsMainFrame() const override; | 78 bool IsMainFrame() const override; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 void set_memory_cost(int cost) { memory_cost_ = cost; } | 172 void set_memory_cost(int cost) { memory_cost_ = cost; } |
172 | 173 |
173 bool is_load_timing_enabled() const { return enable_load_timing_; } | 174 bool is_load_timing_enabled() const { return enable_load_timing_; } |
174 | 175 |
175 bool is_upload_progress_enabled() const { return enable_upload_progress_; } | 176 bool is_upload_progress_enabled() const { return enable_upload_progress_; } |
176 | 177 |
177 bool do_not_prompt_for_login() const { return do_not_prompt_for_login_; } | 178 bool do_not_prompt_for_login() const { return do_not_prompt_for_login_; } |
178 void set_do_not_prompt_for_login(bool do_not_prompt) { | 179 void set_do_not_prompt_for_login(bool do_not_prompt) { |
179 do_not_prompt_for_login_ = do_not_prompt; | 180 do_not_prompt_for_login_ = do_not_prompt; |
180 } | 181 } |
| 182 const std::string& original_headers() const { return original_headers_; } |
181 | 183 |
182 private: | 184 private: |
183 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, | 185 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, |
184 DeletedFilterDetached); | 186 DeletedFilterDetached); |
185 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, | 187 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, |
186 DeletedFilterDetachedRedirect); | 188 DeletedFilterDetachedRedirect); |
187 // Non-owning, may be NULL. | 189 // Non-owning, may be NULL. |
188 CrossSiteResourceHandler* cross_site_handler_; | 190 CrossSiteResourceHandler* cross_site_handler_; |
189 DetachableResourceHandler* detachable_handler_; | 191 DetachableResourceHandler* detachable_handler_; |
190 | 192 |
(...skipping 20 matching lines...) Expand all Loading... |
211 ResourceType resource_type_; | 213 ResourceType resource_type_; |
212 ui::PageTransition transition_type_; | 214 ui::PageTransition transition_type_; |
213 int memory_cost_; | 215 int memory_cost_; |
214 blink::WebReferrerPolicy referrer_policy_; | 216 blink::WebReferrerPolicy referrer_policy_; |
215 blink::WebPageVisibilityState visibility_state_; | 217 blink::WebPageVisibilityState visibility_state_; |
216 ResourceContext* context_; | 218 ResourceContext* context_; |
217 // The filter might be deleted without deleting this object if the process | 219 // The filter might be deleted without deleting this object if the process |
218 // exits during a transfer. | 220 // exits during a transfer. |
219 base::WeakPtr<ResourceMessageFilter> filter_; | 221 base::WeakPtr<ResourceMessageFilter> filter_; |
220 bool is_async_; | 222 bool is_async_; |
| 223 const std::string original_headers_; |
221 | 224 |
222 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); | 225 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); |
223 }; | 226 }; |
224 | 227 |
225 } // namespace content | 228 } // namespace content |
226 | 229 |
227 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ | 230 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ |
OLD | NEW |