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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool parent_is_main_frame, | 50 bool parent_is_main_frame, |
51 int parent_render_frame_id, | 51 int parent_render_frame_id, |
52 ResourceType resource_type, | 52 ResourceType resource_type, |
53 PageTransition transition_type, | 53 ui::PageTransition transition_type, |
54 bool should_replace_current_entry, | 54 bool should_replace_current_entry, |
55 bool is_download, | 55 bool is_download, |
56 bool is_stream, | 56 bool is_stream, |
57 bool allow_download, | 57 bool allow_download, |
58 bool has_user_gesture, | 58 bool has_user_gesture, |
59 bool enable_load_timing, | 59 bool enable_load_timing, |
60 blink::WebReferrerPolicy referrer_policy, | 60 blink::WebReferrerPolicy referrer_policy, |
61 blink::WebPageVisibilityState visibility_state, | 61 blink::WebPageVisibilityState visibility_state, |
62 ResourceContext* context, | 62 ResourceContext* context, |
63 base::WeakPtr<ResourceMessageFilter> filter, | 63 base::WeakPtr<ResourceMessageFilter> filter, |
64 bool is_async); | 64 bool is_async); |
65 virtual ~ResourceRequestInfoImpl(); | 65 virtual ~ResourceRequestInfoImpl(); |
66 | 66 |
67 // ResourceRequestInfo implementation: | 67 // ResourceRequestInfo implementation: |
68 virtual ResourceContext* GetContext() const OVERRIDE; | 68 virtual ResourceContext* GetContext() const OVERRIDE; |
69 virtual int GetChildID() const OVERRIDE; | 69 virtual int GetChildID() const OVERRIDE; |
70 virtual int GetRouteID() const OVERRIDE; | 70 virtual int GetRouteID() const OVERRIDE; |
71 virtual int GetOriginPID() const OVERRIDE; | 71 virtual int GetOriginPID() const OVERRIDE; |
72 virtual int GetRequestID() const OVERRIDE; | 72 virtual int GetRequestID() const OVERRIDE; |
73 virtual int GetRenderFrameID() const OVERRIDE; | 73 virtual int GetRenderFrameID() const OVERRIDE; |
74 virtual bool IsMainFrame() const OVERRIDE; | 74 virtual bool IsMainFrame() const OVERRIDE; |
75 virtual bool ParentIsMainFrame() const OVERRIDE; | 75 virtual bool ParentIsMainFrame() const OVERRIDE; |
76 virtual int GetParentRenderFrameID() const OVERRIDE; | 76 virtual int GetParentRenderFrameID() const OVERRIDE; |
77 virtual ResourceType GetResourceType() const OVERRIDE; | 77 virtual ResourceType GetResourceType() const OVERRIDE; |
78 virtual int GetProcessType() const OVERRIDE; | 78 virtual int GetProcessType() const OVERRIDE; |
79 virtual blink::WebReferrerPolicy GetReferrerPolicy() const OVERRIDE; | 79 virtual blink::WebReferrerPolicy GetReferrerPolicy() const OVERRIDE; |
80 virtual blink::WebPageVisibilityState GetVisibilityState() const OVERRIDE; | 80 virtual blink::WebPageVisibilityState GetVisibilityState() const OVERRIDE; |
81 virtual PageTransition GetPageTransition() const OVERRIDE; | 81 virtual ui::PageTransition GetPageTransition() const OVERRIDE; |
82 virtual bool HasUserGesture() const OVERRIDE; | 82 virtual bool HasUserGesture() const OVERRIDE; |
83 virtual bool WasIgnoredByHandler() const OVERRIDE; | 83 virtual bool WasIgnoredByHandler() const OVERRIDE; |
84 virtual bool GetAssociatedRenderFrame(int* render_process_id, | 84 virtual bool GetAssociatedRenderFrame(int* render_process_id, |
85 int* render_frame_id) const OVERRIDE; | 85 int* render_frame_id) const OVERRIDE; |
86 virtual bool IsAsync() const OVERRIDE; | 86 virtual bool IsAsync() const OVERRIDE; |
87 virtual bool IsDownload() const OVERRIDE; | 87 virtual bool IsDownload() const OVERRIDE; |
88 | 88 |
89 | 89 |
90 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request); | 90 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request); |
91 | 91 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 bool parent_is_main_frame_; | 174 bool parent_is_main_frame_; |
175 int parent_render_frame_id_; | 175 int parent_render_frame_id_; |
176 bool should_replace_current_entry_; | 176 bool should_replace_current_entry_; |
177 bool is_download_; | 177 bool is_download_; |
178 bool is_stream_; | 178 bool is_stream_; |
179 bool allow_download_; | 179 bool allow_download_; |
180 bool has_user_gesture_; | 180 bool has_user_gesture_; |
181 bool enable_load_timing_; | 181 bool enable_load_timing_; |
182 bool was_ignored_by_handler_; | 182 bool was_ignored_by_handler_; |
183 ResourceType resource_type_; | 183 ResourceType resource_type_; |
184 PageTransition transition_type_; | 184 ui::PageTransition transition_type_; |
185 int memory_cost_; | 185 int memory_cost_; |
186 blink::WebReferrerPolicy referrer_policy_; | 186 blink::WebReferrerPolicy referrer_policy_; |
187 blink::WebPageVisibilityState visibility_state_; | 187 blink::WebPageVisibilityState visibility_state_; |
188 ResourceContext* context_; | 188 ResourceContext* context_; |
189 // The filter might be deleted without deleting this object if the process | 189 // The filter might be deleted without deleting this object if the process |
190 // exits during a transfer. | 190 // exits during a transfer. |
191 base::WeakPtr<ResourceMessageFilter> filter_; | 191 base::WeakPtr<ResourceMessageFilter> filter_; |
192 bool is_async_; | 192 bool is_async_; |
193 | 193 |
194 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); | 194 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); |
195 }; | 195 }; |
196 | 196 |
197 } // namespace content | 197 } // namespace content |
198 | 198 |
199 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ | 199 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ |
OLD | NEW |