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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 bool allow_download, | 63 bool allow_download, |
64 bool has_user_gesture, | 64 bool has_user_gesture, |
65 bool enable_load_timing, | 65 bool enable_load_timing, |
66 bool enable_upload_progress, | 66 bool enable_upload_progress, |
67 bool do_not_prompt_for_login, | 67 bool do_not_prompt_for_login, |
68 blink::WebReferrerPolicy referrer_policy, | 68 blink::WebReferrerPolicy referrer_policy, |
69 blink::WebPageVisibilityState visibility_state, | 69 blink::WebPageVisibilityState visibility_state, |
70 ResourceContext* context, | 70 ResourceContext* context, |
71 bool report_raw_headers, | 71 bool report_raw_headers, |
72 bool is_async, | 72 bool is_async, |
73 bool is_using_lofi, | 73 int previews_state, |
74 const std::string& original_headers, | 74 const std::string& original_headers, |
75 const scoped_refptr<ResourceRequestBodyImpl> body, | 75 const scoped_refptr<ResourceRequestBodyImpl> body, |
76 bool initiated_in_secure_context); | 76 bool initiated_in_secure_context); |
77 ~ResourceRequestInfoImpl() override; | 77 ~ResourceRequestInfoImpl() override; |
78 | 78 |
79 // ResourceRequestInfo implementation: | 79 // ResourceRequestInfo implementation: |
80 WebContentsGetter GetWebContentsGetterForRequest() const override; | 80 WebContentsGetter GetWebContentsGetterForRequest() const override; |
81 ResourceContext* GetContext() const override; | 81 ResourceContext* GetContext() const override; |
82 int GetChildID() const override; | 82 int GetChildID() const override; |
83 int GetRouteID() const override; | 83 int GetRouteID() const override; |
84 GlobalRequestID GetGlobalRequestID() const override; | 84 GlobalRequestID GetGlobalRequestID() const override; |
85 int GetOriginPID() const override; | 85 int GetOriginPID() const override; |
86 int GetRenderFrameID() const override; | 86 int GetRenderFrameID() const override; |
87 int GetFrameTreeNodeId() const override; | 87 int GetFrameTreeNodeId() const override; |
88 bool IsMainFrame() const override; | 88 bool IsMainFrame() const override; |
89 bool ParentIsMainFrame() const override; | 89 bool ParentIsMainFrame() const override; |
90 ResourceType GetResourceType() const override; | 90 ResourceType GetResourceType() const override; |
91 int GetProcessType() const override; | 91 int GetProcessType() const override; |
92 blink::WebReferrerPolicy GetReferrerPolicy() const override; | 92 blink::WebReferrerPolicy GetReferrerPolicy() const override; |
93 blink::WebPageVisibilityState GetVisibilityState() const override; | 93 blink::WebPageVisibilityState GetVisibilityState() const override; |
94 ui::PageTransition GetPageTransition() const override; | 94 ui::PageTransition GetPageTransition() const override; |
95 bool HasUserGesture() const override; | 95 bool HasUserGesture() const override; |
96 bool WasIgnoredByHandler() const override; | 96 bool WasIgnoredByHandler() const override; |
97 bool GetAssociatedRenderFrame(int* render_process_id, | 97 bool GetAssociatedRenderFrame(int* render_process_id, |
98 int* render_frame_id) const override; | 98 int* render_frame_id) const override; |
99 bool IsAsync() const override; | 99 bool IsAsync() const override; |
100 bool IsDownload() const override; | 100 bool IsDownload() const override; |
101 bool IsUsingLoFi() const override; | 101 int GetPreviewsState() const override; |
102 bool ShouldReportRawHeaders() const; | 102 bool ShouldReportRawHeaders() const; |
103 NavigationUIData* GetNavigationUIData() const override; | 103 NavigationUIData* GetNavigationUIData() const override; |
104 | 104 |
105 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request); | 105 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request); |
106 | 106 |
107 CONTENT_EXPORT int GetRequestID() const; | 107 CONTENT_EXPORT int GetRequestID() const; |
108 GlobalRoutingID GetGlobalRoutingID() const; | 108 GlobalRoutingID GetGlobalRoutingID() const; |
109 | 109 |
110 // PlzNavigate | 110 // PlzNavigate |
111 // The id of the FrameTreeNode that initiated this request (for a navigation | 111 // The id of the FrameTreeNode that initiated this request (for a navigation |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 bool was_ignored_by_handler_; | 226 bool was_ignored_by_handler_; |
227 bool counted_as_in_flight_request_; | 227 bool counted_as_in_flight_request_; |
228 ResourceType resource_type_; | 228 ResourceType resource_type_; |
229 ui::PageTransition transition_type_; | 229 ui::PageTransition transition_type_; |
230 int memory_cost_; | 230 int memory_cost_; |
231 blink::WebReferrerPolicy referrer_policy_; | 231 blink::WebReferrerPolicy referrer_policy_; |
232 blink::WebPageVisibilityState visibility_state_; | 232 blink::WebPageVisibilityState visibility_state_; |
233 ResourceContext* context_; | 233 ResourceContext* context_; |
234 bool report_raw_headers_; | 234 bool report_raw_headers_; |
235 bool is_async_; | 235 bool is_async_; |
236 bool is_using_lofi_; | 236 int previews_state_; |
237 const std::string original_headers_; | 237 const std::string original_headers_; |
238 scoped_refptr<ResourceRequestBodyImpl> body_; | 238 scoped_refptr<ResourceRequestBodyImpl> body_; |
239 bool initiated_in_secure_context_; | 239 bool initiated_in_secure_context_; |
240 std::unique_ptr<NavigationUIData> navigation_ui_data_; | 240 std::unique_ptr<NavigationUIData> navigation_ui_data_; |
241 | 241 |
242 // This callback is set by MojoAsyncResourceHandler to update its mojo binding | 242 // This callback is set by MojoAsyncResourceHandler to update its mojo binding |
243 // and remote endpoint. This callback will be removed once PlzNavigate is | 243 // and remote endpoint. This callback will be removed once PlzNavigate is |
244 // shipped. | 244 // shipped. |
245 TransferCallback on_transfer_; | 245 TransferCallback on_transfer_; |
246 | 246 |
247 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); | 247 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); |
248 }; | 248 }; |
249 | 249 |
250 } // namespace content | 250 } // namespace content |
251 | 251 |
252 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ | 252 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ |
OLD | NEW |