| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 report_raw_headers, | 67 bool report_raw_headers, |
| 68 bool is_async); | 68 bool is_async, |
| 69 bool is_using_lofi); |
| 69 ~ResourceRequestInfoImpl() override; | 70 ~ResourceRequestInfoImpl() override; |
| 70 | 71 |
| 71 // ResourceRequestInfo implementation: | 72 // ResourceRequestInfo implementation: |
| 72 ResourceContext* GetContext() const override; | 73 ResourceContext* GetContext() const override; |
| 73 int GetChildID() const override; | 74 int GetChildID() const override; |
| 74 int GetRouteID() const override; | 75 int GetRouteID() const override; |
| 75 int GetOriginPID() const override; | 76 int GetOriginPID() const override; |
| 76 int GetRequestID() const override; | 77 int GetRequestID() const override; |
| 77 int GetRenderFrameID() const override; | 78 int GetRenderFrameID() const override; |
| 78 bool IsMainFrame() const override; | 79 bool IsMainFrame() const override; |
| 79 bool ParentIsMainFrame() const override; | 80 bool ParentIsMainFrame() const override; |
| 80 int GetParentRenderFrameID() const override; | 81 int GetParentRenderFrameID() const override; |
| 81 ResourceType GetResourceType() const override; | 82 ResourceType GetResourceType() const override; |
| 82 int GetProcessType() const override; | 83 int GetProcessType() const override; |
| 83 blink::WebReferrerPolicy GetReferrerPolicy() const override; | 84 blink::WebReferrerPolicy GetReferrerPolicy() const override; |
| 84 blink::WebPageVisibilityState GetVisibilityState() const override; | 85 blink::WebPageVisibilityState GetVisibilityState() const override; |
| 85 ui::PageTransition GetPageTransition() const override; | 86 ui::PageTransition GetPageTransition() const override; |
| 86 bool HasUserGesture() const override; | 87 bool HasUserGesture() const override; |
| 87 bool WasIgnoredByHandler() const override; | 88 bool WasIgnoredByHandler() const override; |
| 88 bool GetAssociatedRenderFrame(int* render_process_id, | 89 bool GetAssociatedRenderFrame(int* render_process_id, |
| 89 int* render_frame_id) const override; | 90 int* render_frame_id) const override; |
| 90 bool IsAsync() const override; | 91 bool IsAsync() const override; |
| 91 bool IsDownload() const override; | 92 bool IsDownload() const override; |
| 93 bool IsUsingLoFi() const override; |
| 92 bool ShouldReportRawHeaders() const; | 94 bool ShouldReportRawHeaders() const; |
| 93 | 95 |
| 94 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request); | 96 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request); |
| 95 | 97 |
| 96 CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const; | 98 CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const; |
| 97 GlobalRoutingID GetGlobalRoutingID() const; | 99 GlobalRoutingID GetGlobalRoutingID() const; |
| 98 | 100 |
| 99 // PlzNavigate | 101 // PlzNavigate |
| 100 // The id of the FrameTreeNode that initiated this request (for a navigation | 102 // The id of the FrameTreeNode that initiated this request (for a navigation |
| 101 // request). | 103 // request). |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 ui::PageTransition transition_type_; | 216 ui::PageTransition transition_type_; |
| 215 int memory_cost_; | 217 int memory_cost_; |
| 216 blink::WebReferrerPolicy referrer_policy_; | 218 blink::WebReferrerPolicy referrer_policy_; |
| 217 blink::WebPageVisibilityState visibility_state_; | 219 blink::WebPageVisibilityState visibility_state_; |
| 218 ResourceContext* context_; | 220 ResourceContext* context_; |
| 219 // 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 |
| 220 // exits during a transfer. | 222 // exits during a transfer. |
| 221 base::WeakPtr<ResourceMessageFilter> filter_; | 223 base::WeakPtr<ResourceMessageFilter> filter_; |
| 222 bool report_raw_headers_; | 224 bool report_raw_headers_; |
| 223 bool is_async_; | 225 bool is_async_; |
| 226 bool is_using_lofi_; |
| 224 | 227 |
| 225 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); | 228 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); |
| 226 }; | 229 }; |
| 227 | 230 |
| 228 } // namespace content | 231 } // namespace content |
| 229 | 232 |
| 230 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ | 233 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ |
| OLD | NEW |