| 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 WebContentsGetter GetWebContentsGetterForRequest() const override; | 74 WebContentsGetter GetWebContentsGetterForRequest() const override; |
| 74 ResourceContext* GetContext() const override; | 75 ResourceContext* GetContext() const override; |
| 75 int GetChildID() const override; | 76 int GetChildID() const override; |
| 76 int GetRouteID() const override; | 77 int GetRouteID() const override; |
| 77 int GetOriginPID() const override; | 78 int GetOriginPID() const override; |
| 78 int GetRenderFrameID() const override; | 79 int GetRenderFrameID() const override; |
| 79 bool IsMainFrame() const override; | 80 bool IsMainFrame() const override; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 void set_memory_cost(int cost) { memory_cost_ = cost; } | 177 void set_memory_cost(int cost) { memory_cost_ = cost; } |
| 177 | 178 |
| 178 bool is_load_timing_enabled() const { return enable_load_timing_; } | 179 bool is_load_timing_enabled() const { return enable_load_timing_; } |
| 179 | 180 |
| 180 bool is_upload_progress_enabled() const { return enable_upload_progress_; } | 181 bool is_upload_progress_enabled() const { return enable_upload_progress_; } |
| 181 | 182 |
| 182 bool do_not_prompt_for_login() const { return do_not_prompt_for_login_; } | 183 bool do_not_prompt_for_login() const { return do_not_prompt_for_login_; } |
| 183 void set_do_not_prompt_for_login(bool do_not_prompt) { | 184 void set_do_not_prompt_for_login(bool do_not_prompt) { |
| 184 do_not_prompt_for_login_ = do_not_prompt; | 185 do_not_prompt_for_login_ = do_not_prompt; |
| 185 } | 186 } |
| 187 const std::string& original_headers() const { return original_headers_; } |
| 186 | 188 |
| 187 private: | 189 private: |
| 188 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, | 190 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, |
| 189 DeletedFilterDetached); | 191 DeletedFilterDetached); |
| 190 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, | 192 FRIEND_TEST_ALL_PREFIXES(ResourceDispatcherHostTest, |
| 191 DeletedFilterDetachedRedirect); | 193 DeletedFilterDetachedRedirect); |
| 192 // Non-owning, may be NULL. | 194 // Non-owning, may be NULL. |
| 193 CrossSiteResourceHandler* cross_site_handler_; | 195 CrossSiteResourceHandler* cross_site_handler_; |
| 194 DetachableResourceHandler* detachable_handler_; | 196 DetachableResourceHandler* detachable_handler_; |
| 195 | 197 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 218 int memory_cost_; | 220 int memory_cost_; |
| 219 blink::WebReferrerPolicy referrer_policy_; | 221 blink::WebReferrerPolicy referrer_policy_; |
| 220 blink::WebPageVisibilityState visibility_state_; | 222 blink::WebPageVisibilityState visibility_state_; |
| 221 ResourceContext* context_; | 223 ResourceContext* context_; |
| 222 // The filter might be deleted without deleting this object if the process | 224 // The filter might be deleted without deleting this object if the process |
| 223 // exits during a transfer. | 225 // exits during a transfer. |
| 224 base::WeakPtr<ResourceMessageFilter> filter_; | 226 base::WeakPtr<ResourceMessageFilter> filter_; |
| 225 bool report_raw_headers_; | 227 bool report_raw_headers_; |
| 226 bool is_async_; | 228 bool is_async_; |
| 227 bool is_using_lofi_; | 229 bool is_using_lofi_; |
| 230 const std::string original_headers_; |
| 228 | 231 |
| 229 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); | 232 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); |
| 230 }; | 233 }; |
| 231 | 234 |
| 232 } // namespace content | 235 } // namespace content |
| 233 | 236 |
| 234 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ | 237 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ |
| OLD | NEW |