| 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/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 CONTENT_EXPORT ResourceRequestInfoImpl( | 42 CONTENT_EXPORT ResourceRequestInfoImpl( |
| 43 int process_type, | 43 int process_type, |
| 44 int child_id, | 44 int child_id, |
| 45 int route_id, | 45 int route_id, |
| 46 int frame_tree_node_id, | 46 int frame_tree_node_id, |
| 47 int origin_pid, | 47 int origin_pid, |
| 48 int request_id, | 48 int request_id, |
| 49 int render_frame_id, | 49 int render_frame_id, |
| 50 bool is_main_frame, | 50 bool is_main_frame, |
| 51 bool parent_is_main_frame, | 51 bool parent_is_main_frame, |
| 52 int parent_render_frame_id, | |
| 53 ResourceType resource_type, | 52 ResourceType resource_type, |
| 54 ui::PageTransition transition_type, | 53 ui::PageTransition transition_type, |
| 55 bool should_replace_current_entry, | 54 bool should_replace_current_entry, |
| 56 bool is_download, | 55 bool is_download, |
| 57 bool is_stream, | 56 bool is_stream, |
| 58 bool allow_download, | 57 bool allow_download, |
| 59 bool has_user_gesture, | 58 bool has_user_gesture, |
| 60 bool enable_load_timing, | 59 bool enable_load_timing, |
| 61 bool enable_upload_progress, | 60 bool enable_upload_progress, |
| 62 bool do_not_prompt_for_login, | 61 bool do_not_prompt_for_login, |
| 63 blink::WebReferrerPolicy referrer_policy, | 62 blink::WebReferrerPolicy referrer_policy, |
| 64 blink::WebPageVisibilityState visibility_state, | 63 blink::WebPageVisibilityState visibility_state, |
| 65 ResourceContext* context, | 64 ResourceContext* context, |
| 66 base::WeakPtr<ResourceMessageFilter> filter, | 65 base::WeakPtr<ResourceMessageFilter> filter, |
| 67 bool report_raw_headers, | 66 bool report_raw_headers, |
| 68 bool is_async, | 67 bool is_async, |
| 69 bool is_using_lofi, | 68 bool is_using_lofi, |
| 70 const std::string& original_headers); | 69 const std::string& original_headers); |
| 71 ~ResourceRequestInfoImpl() override; | 70 ~ResourceRequestInfoImpl() override; |
| 72 | 71 |
| 73 // ResourceRequestInfo implementation: | 72 // ResourceRequestInfo implementation: |
| 74 WebContentsGetter GetWebContentsGetterForRequest() const override; | 73 WebContentsGetter GetWebContentsGetterForRequest() const override; |
| 75 ResourceContext* GetContext() const override; | 74 ResourceContext* GetContext() const override; |
| 76 int GetChildID() const override; | 75 int GetChildID() const override; |
| 77 int GetRouteID() const override; | 76 int GetRouteID() const override; |
| 78 int GetOriginPID() const override; | 77 int GetOriginPID() const override; |
| 79 int GetRenderFrameID() const override; | 78 int GetRenderFrameID() const override; |
| 80 bool IsMainFrame() const override; | 79 bool IsMainFrame() const override; |
| 81 bool ParentIsMainFrame() const override; | 80 bool ParentIsMainFrame() const override; |
| 82 int GetParentRenderFrameID() const override; | |
| 83 ResourceType GetResourceType() const override; | 81 ResourceType GetResourceType() const override; |
| 84 int GetProcessType() const override; | 82 int GetProcessType() const override; |
| 85 blink::WebReferrerPolicy GetReferrerPolicy() const override; | 83 blink::WebReferrerPolicy GetReferrerPolicy() const override; |
| 86 blink::WebPageVisibilityState GetVisibilityState() const override; | 84 blink::WebPageVisibilityState GetVisibilityState() const override; |
| 87 ui::PageTransition GetPageTransition() const override; | 85 ui::PageTransition GetPageTransition() const override; |
| 88 bool HasUserGesture() const override; | 86 bool HasUserGesture() const override; |
| 89 bool WasIgnoredByHandler() const override; | 87 bool WasIgnoredByHandler() const override; |
| 90 bool GetAssociatedRenderFrame(int* render_process_id, | 88 bool GetAssociatedRenderFrame(int* render_process_id, |
| 91 int* render_frame_id) const override; | 89 int* render_frame_id) const override; |
| 92 bool IsAsync() const override; | 90 bool IsAsync() const override; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 111 } | 109 } |
| 112 | 110 |
| 113 // Updates the data associated with this request after it is is transferred | 111 // Updates the data associated with this request after it is is transferred |
| 114 // to a new renderer process. Not all data will change during a transfer. | 112 // to a new renderer process. Not all data will change during a transfer. |
| 115 // We do not expect the ResourceContext to change during navigation, so that | 113 // We do not expect the ResourceContext to change during navigation, so that |
| 116 // does not need to be updated. | 114 // does not need to be updated. |
| 117 void UpdateForTransfer(int child_id, | 115 void UpdateForTransfer(int child_id, |
| 118 int route_id, | 116 int route_id, |
| 119 int origin_pid, | 117 int origin_pid, |
| 120 int request_id, | 118 int request_id, |
| 121 int parent_render_frame_id, | |
| 122 base::WeakPtr<ResourceMessageFilter> filter); | 119 base::WeakPtr<ResourceMessageFilter> filter); |
| 123 | 120 |
| 124 // CrossSiteResourceHandler for this request. May be null. | 121 // CrossSiteResourceHandler for this request. May be null. |
| 125 CrossSiteResourceHandler* cross_site_handler() { | 122 CrossSiteResourceHandler* cross_site_handler() { |
| 126 return cross_site_handler_; | 123 return cross_site_handler_; |
| 127 } | 124 } |
| 128 void set_cross_site_handler(CrossSiteResourceHandler* h) { | 125 void set_cross_site_handler(CrossSiteResourceHandler* h) { |
| 129 cross_site_handler_ = h; | 126 cross_site_handler_ = h; |
| 130 } | 127 } |
| 131 | 128 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 194 |
| 198 int process_type_; | 195 int process_type_; |
| 199 int child_id_; | 196 int child_id_; |
| 200 int route_id_; | 197 int route_id_; |
| 201 const int frame_tree_node_id_; | 198 const int frame_tree_node_id_; |
| 202 int origin_pid_; | 199 int origin_pid_; |
| 203 int request_id_; | 200 int request_id_; |
| 204 int render_frame_id_; | 201 int render_frame_id_; |
| 205 bool is_main_frame_; | 202 bool is_main_frame_; |
| 206 bool parent_is_main_frame_; | 203 bool parent_is_main_frame_; |
| 207 int parent_render_frame_id_; | |
| 208 bool should_replace_current_entry_; | 204 bool should_replace_current_entry_; |
| 209 bool is_download_; | 205 bool is_download_; |
| 210 bool is_stream_; | 206 bool is_stream_; |
| 211 bool allow_download_; | 207 bool allow_download_; |
| 212 bool has_user_gesture_; | 208 bool has_user_gesture_; |
| 213 bool enable_load_timing_; | 209 bool enable_load_timing_; |
| 214 bool enable_upload_progress_; | 210 bool enable_upload_progress_; |
| 215 bool do_not_prompt_for_login_; | 211 bool do_not_prompt_for_login_; |
| 216 bool was_ignored_by_handler_; | 212 bool was_ignored_by_handler_; |
| 217 bool counted_as_in_flight_request_; | 213 bool counted_as_in_flight_request_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 228 bool is_async_; | 224 bool is_async_; |
| 229 bool is_using_lofi_; | 225 bool is_using_lofi_; |
| 230 const std::string original_headers_; | 226 const std::string original_headers_; |
| 231 | 227 |
| 232 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); | 228 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); |
| 233 }; | 229 }; |
| 234 | 230 |
| 235 } // namespace content | 231 } // namespace content |
| 236 | 232 |
| 237 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ | 233 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ |
| OLD | NEW |