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

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

Issue 107183002: Move more of the plugin code in the renderer to use RenderFrame instead of RenderView. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 7 years 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 27 matching lines...) Expand all
38 // And, a const version for cases where you only need read access. 38 // And, a const version for cases where you only need read access.
39 CONTENT_EXPORT static const ResourceRequestInfoImpl* ForRequest( 39 CONTENT_EXPORT static const ResourceRequestInfoImpl* ForRequest(
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 bool is_main_frame, 49 bool is_main_frame,
49 int64 frame_id, 50 int64 frame_id,
50 bool parent_is_main_frame, 51 bool parent_is_main_frame,
51 int64 parent_frame_id, 52 int64 parent_frame_id,
52 ResourceType::Type resource_type, 53 ResourceType::Type resource_type,
53 PageTransition transition_type, 54 PageTransition transition_type,
54 bool should_replace_current_entry, 55 bool should_replace_current_entry,
55 bool is_download, 56 bool is_download,
56 bool is_stream, 57 bool is_stream,
57 bool allow_download, 58 bool allow_download,
58 bool has_user_gesture, 59 bool has_user_gesture,
59 blink::WebReferrerPolicy referrer_policy, 60 blink::WebReferrerPolicy referrer_policy,
60 ResourceContext* context, 61 ResourceContext* context,
61 base::WeakPtr<ResourceMessageFilter> filter, 62 base::WeakPtr<ResourceMessageFilter> filter,
62 bool is_async); 63 bool is_async);
63 virtual ~ResourceRequestInfoImpl(); 64 virtual ~ResourceRequestInfoImpl();
64 65
65 // ResourceRequestInfo implementation: 66 // ResourceRequestInfo implementation:
66 virtual ResourceContext* GetContext() const OVERRIDE; 67 virtual ResourceContext* GetContext() const OVERRIDE;
67 virtual int GetChildID() const OVERRIDE; 68 virtual int GetChildID() const OVERRIDE;
68 virtual int GetRouteID() const OVERRIDE; 69 virtual int GetRouteID() const OVERRIDE;
69 virtual int GetOriginPID() const OVERRIDE; 70 virtual int GetOriginPID() const OVERRIDE;
70 virtual int GetRequestID() const OVERRIDE; 71 virtual int GetRequestID() const OVERRIDE;
72 virtual int GetRenderFrameID() const OVERRIDE;
71 virtual bool IsMainFrame() const OVERRIDE; 73 virtual bool IsMainFrame() const OVERRIDE;
72 virtual int64 GetFrameID() const OVERRIDE; 74 virtual int64 GetFrameID() const OVERRIDE;
73 virtual bool ParentIsMainFrame() const OVERRIDE; 75 virtual bool ParentIsMainFrame() const OVERRIDE;
74 virtual int64 GetParentFrameID() const OVERRIDE; 76 virtual int64 GetParentFrameID() const OVERRIDE;
75 virtual ResourceType::Type GetResourceType() const OVERRIDE; 77 virtual ResourceType::Type GetResourceType() const OVERRIDE;
76 virtual blink::WebReferrerPolicy GetReferrerPolicy() const OVERRIDE; 78 virtual blink::WebReferrerPolicy GetReferrerPolicy() const OVERRIDE;
77 virtual PageTransition GetPageTransition() const OVERRIDE; 79 virtual PageTransition GetPageTransition() const OVERRIDE;
78 virtual bool HasUserGesture() const OVERRIDE; 80 virtual bool HasUserGesture() const OVERRIDE;
79 virtual bool WasIgnoredByHandler() const OVERRIDE; 81 virtual bool WasIgnoredByHandler() const OVERRIDE;
80 virtual bool GetAssociatedRenderView(int* render_process_id, 82 virtual bool GetAssociatedRenderView(int* render_process_id,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 DeletedFilterDetachedRedirect); 159 DeletedFilterDetachedRedirect);
158 // Non-owning, may be NULL. 160 // Non-owning, may be NULL.
159 CrossSiteResourceHandler* cross_site_handler_; 161 CrossSiteResourceHandler* cross_site_handler_;
160 DetachableResourceHandler* detachable_handler_; 162 DetachableResourceHandler* detachable_handler_;
161 163
162 int process_type_; 164 int process_type_;
163 int child_id_; 165 int child_id_;
164 int route_id_; 166 int route_id_;
165 int origin_pid_; 167 int origin_pid_;
166 int request_id_; 168 int request_id_;
169 int render_frame_id_;
167 bool is_main_frame_; 170 bool is_main_frame_;
168 int64 frame_id_; 171 int64 frame_id_;
169 bool parent_is_main_frame_; 172 bool parent_is_main_frame_;
170 int64 parent_frame_id_; 173 int64 parent_frame_id_;
171 bool should_replace_current_entry_; 174 bool should_replace_current_entry_;
172 bool is_download_; 175 bool is_download_;
173 bool is_stream_; 176 bool is_stream_;
174 bool allow_download_; 177 bool allow_download_;
175 bool has_user_gesture_; 178 bool has_user_gesture_;
176 bool was_ignored_by_handler_; 179 bool was_ignored_by_handler_;
177 ResourceType::Type resource_type_; 180 ResourceType::Type resource_type_;
178 PageTransition transition_type_; 181 PageTransition transition_type_;
179 int memory_cost_; 182 int memory_cost_;
180 blink::WebReferrerPolicy referrer_policy_; 183 blink::WebReferrerPolicy referrer_policy_;
181 ResourceContext* context_; 184 ResourceContext* context_;
182 // 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
183 // exits during a transfer. 186 // exits during a transfer.
184 base::WeakPtr<ResourceMessageFilter> filter_; 187 base::WeakPtr<ResourceMessageFilter> filter_;
185 bool is_async_; 188 bool is_async_;
186 189
187 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); 190 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl);
188 }; 191 };
189 192
190 } // namespace content 193 } // namespace content
191 194
192 #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_impl.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