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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ui::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 |
92 CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const; | 92 CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const; |
93 GlobalRoutingID GetGlobalRoutingID() const; | 93 GlobalRoutingID GetGlobalRoutingID() const; |
94 | 94 |
95 // May be NULL (e.g., if process dies during a transfer). | 95 // May be NULL (e.g., if process dies during a transfer). |
96 ResourceMessageFilter* filter() const { | 96 ResourceMessageFilter* filter() const { |
97 return filter_.get(); | 97 return filter_.get(); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |