| 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 { |
| 183 return original_headers_; |
| 184 } |
| 181 | 185 |
| 182 private: | 186 private: |
| 183 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, | 187 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, |
| 184 DeletedFilterDetached); | 188 DeletedFilterDetached); |
| 185 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, | 189 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, |
| 186 DeletedFilterDetachedRedirect); | 190 DeletedFilterDetachedRedirect); |
| 187 // Non-owning, may be NULL. | 191 // Non-owning, may be NULL. |
| 188 CrossSiteResourceHandler* cross_site_handler_; | 192 CrossSiteResourceHandler* cross_site_handler_; |
| 189 DetachableResourceHandler* detachable_handler_; | 193 DetachableResourceHandler* detachable_handler_; |
| 190 | 194 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 211 ResourceType resource_type_; | 215 ResourceType resource_type_; |
| 212 ui::PageTransition transition_type_; | 216 ui::PageTransition transition_type_; |
| 213 int memory_cost_; | 217 int memory_cost_; |
| 214 blink::WebReferrerPolicy referrer_policy_; | 218 blink::WebReferrerPolicy referrer_policy_; |
| 215 blink::WebPageVisibilityState visibility_state_; | 219 blink::WebPageVisibilityState visibility_state_; |
| 216 ResourceContext* context_; | 220 ResourceContext* context_; |
| 217 // The filter might be deleted without deleting this object if the process | 221 // The filter might be deleted without deleting this object if the process |
| 218 // exits during a transfer. | 222 // exits during a transfer. |
| 219 base::WeakPtr<ResourceMessageFilter> filter_; | 223 base::WeakPtr<ResourceMessageFilter> filter_; |
| 220 bool is_async_; | 224 bool is_async_; |
| 225 const std::string original_headers_; |
| 221 | 226 |
| 222 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); | 227 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); |
| 223 }; | 228 }; |
| 224 | 229 |
| 225 } // namespace content | 230 } // namespace content |
| 226 | 231 |
| 227 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ | 232 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ |
| OLD | NEW |