Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: content/browser/loader/resource_request_info_impl.h

Issue 184873004: Update resource requests to remove redundant frame ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 29 matching lines...) Expand all
40 const net::URLRequest* request); 40 const net::URLRequest* request);
41 41
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 origin_pid, 46 int origin_pid,
47 int request_id, 47 int request_id,
48 int render_frame_id, 48 int render_frame_id,
49 bool is_main_frame, 49 bool is_main_frame,
50 int64 frame_id,
51 bool parent_is_main_frame, 50 bool parent_is_main_frame,
52 int64 parent_frame_id, 51 int parent_render_frame_id,
53 ResourceType::Type resource_type, 52 ResourceType::Type resource_type,
54 PageTransition transition_type, 53 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 blink::WebReferrerPolicy referrer_policy, 59 blink::WebReferrerPolicy referrer_policy,
61 blink::WebPageVisibilityState visibility_state, 60 blink::WebPageVisibilityState visibility_state,
62 ResourceContext* context, 61 ResourceContext* context,
63 base::WeakPtr<ResourceMessageFilter> filter, 62 base::WeakPtr<ResourceMessageFilter> filter,
64 bool is_async); 63 bool is_async);
65 virtual ~ResourceRequestInfoImpl(); 64 virtual ~ResourceRequestInfoImpl();
66 65
67 // ResourceRequestInfo implementation: 66 // ResourceRequestInfo implementation:
68 virtual ResourceContext* GetContext() const OVERRIDE; 67 virtual ResourceContext* GetContext() const OVERRIDE;
69 virtual int GetChildID() const OVERRIDE; 68 virtual int GetChildID() const OVERRIDE;
70 virtual int GetRouteID() const OVERRIDE; 69 virtual int GetRouteID() const OVERRIDE;
71 virtual int GetOriginPID() const OVERRIDE; 70 virtual int GetOriginPID() const OVERRIDE;
72 virtual int GetRequestID() const OVERRIDE; 71 virtual int GetRequestID() const OVERRIDE;
73 virtual int GetRenderFrameID() const OVERRIDE; 72 virtual int GetRenderFrameID() const OVERRIDE;
74 virtual bool IsMainFrame() const OVERRIDE; 73 virtual bool IsMainFrame() const OVERRIDE;
75 virtual int64 GetFrameID() const OVERRIDE;
76 virtual bool ParentIsMainFrame() const OVERRIDE; 74 virtual bool ParentIsMainFrame() const OVERRIDE;
77 virtual int64 GetParentFrameID() const OVERRIDE; 75 virtual int GetParentRenderFrameID() const OVERRIDE;
78 virtual ResourceType::Type GetResourceType() const OVERRIDE; 76 virtual ResourceType::Type GetResourceType() const OVERRIDE;
79 virtual int GetProcessType() const OVERRIDE; 77 virtual int GetProcessType() const OVERRIDE;
80 virtual blink::WebReferrerPolicy GetReferrerPolicy() const OVERRIDE; 78 virtual blink::WebReferrerPolicy GetReferrerPolicy() const OVERRIDE;
81 virtual blink::WebPageVisibilityState GetVisibilityState() const OVERRIDE; 79 virtual blink::WebPageVisibilityState GetVisibilityState() const OVERRIDE;
82 virtual PageTransition GetPageTransition() const OVERRIDE; 80 virtual PageTransition GetPageTransition() const OVERRIDE;
83 virtual bool HasUserGesture() const OVERRIDE; 81 virtual bool HasUserGesture() const OVERRIDE;
84 virtual bool WasIgnoredByHandler() const OVERRIDE; 82 virtual bool WasIgnoredByHandler() const OVERRIDE;
85 virtual bool GetAssociatedRenderFrame(int* render_process_id, 83 virtual bool GetAssociatedRenderFrame(int* render_process_id,
86 int* render_frame_id) const OVERRIDE; 84 int* render_frame_id) const OVERRIDE;
87 virtual bool IsAsync() const OVERRIDE; 85 virtual bool IsAsync() const OVERRIDE;
(...skipping 11 matching lines...) Expand all
99 } 97 }
100 98
101 // Updates the data associated with this request after it is is transferred 99 // Updates the data associated with this request after it is is transferred
102 // to a new renderer process. Not all data will change during a transfer. 100 // to a new renderer process. Not all data will change during a transfer.
103 // We do not expect the ResourceContext to change during navigation, so that 101 // We do not expect the ResourceContext to change during navigation, so that
104 // does not need to be updated. 102 // does not need to be updated.
105 void UpdateForTransfer(int child_id, 103 void UpdateForTransfer(int child_id,
106 int route_id, 104 int route_id,
107 int origin_pid, 105 int origin_pid,
108 int request_id, 106 int request_id,
109 int64 frame_id, 107 int parent_render_frame_id,
110 int64 parent_frame_id,
111 base::WeakPtr<ResourceMessageFilter> filter); 108 base::WeakPtr<ResourceMessageFilter> filter);
112 109
113 // CrossSiteResourceHandler for this request. May be null. 110 // CrossSiteResourceHandler for this request. May be null.
114 CrossSiteResourceHandler* cross_site_handler() { 111 CrossSiteResourceHandler* cross_site_handler() {
115 return cross_site_handler_; 112 return cross_site_handler_;
116 } 113 }
117 void set_cross_site_handler(CrossSiteResourceHandler* h) { 114 void set_cross_site_handler(CrossSiteResourceHandler* h) {
118 cross_site_handler_ = h; 115 cross_site_handler_ = h;
119 } 116 }
120 117
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 CrossSiteResourceHandler* cross_site_handler_; 161 CrossSiteResourceHandler* cross_site_handler_;
165 DetachableResourceHandler* detachable_handler_; 162 DetachableResourceHandler* detachable_handler_;
166 163
167 int process_type_; 164 int process_type_;
168 int child_id_; 165 int child_id_;
169 int route_id_; 166 int route_id_;
170 int origin_pid_; 167 int origin_pid_;
171 int request_id_; 168 int request_id_;
172 int render_frame_id_; 169 int render_frame_id_;
173 bool is_main_frame_; 170 bool is_main_frame_;
174 int64 frame_id_;
175 bool parent_is_main_frame_; 171 bool parent_is_main_frame_;
176 int64 parent_frame_id_; 172 int parent_render_frame_id_;
177 bool should_replace_current_entry_; 173 bool should_replace_current_entry_;
178 bool is_download_; 174 bool is_download_;
179 bool is_stream_; 175 bool is_stream_;
180 bool allow_download_; 176 bool allow_download_;
181 bool has_user_gesture_; 177 bool has_user_gesture_;
182 bool was_ignored_by_handler_; 178 bool was_ignored_by_handler_;
183 ResourceType::Type resource_type_; 179 ResourceType::Type resource_type_;
184 PageTransition transition_type_; 180 PageTransition transition_type_;
185 int memory_cost_; 181 int memory_cost_;
186 blink::WebReferrerPolicy referrer_policy_; 182 blink::WebReferrerPolicy referrer_policy_;
187 blink::WebPageVisibilityState visibility_state_; 183 blink::WebPageVisibilityState visibility_state_;
188 ResourceContext* context_; 184 ResourceContext* context_;
189 // The filter might be deleted without deleting this object if the process 185 // The filter might be deleted without deleting this object if the process
190 // exits during a transfer. 186 // exits during a transfer.
191 base::WeakPtr<ResourceMessageFilter> filter_; 187 base::WeakPtr<ResourceMessageFilter> filter_;
192 bool is_async_; 188 bool is_async_;
193 189
194 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); 190 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl);
195 }; 191 };
196 192
197 } // namespace content 193 } // namespace content
198 194
199 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ 195 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_unittest.cc ('k') | content/browser/loader/resource_request_info_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698