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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 bool report_raw_headers, | 67 bool report_raw_headers, |
68 bool is_async, | 68 bool is_async, |
69 bool is_using_lofi); | 69 bool is_using_lofi); |
70 ~ResourceRequestInfoImpl() override; | 70 ~ResourceRequestInfoImpl() override; |
71 | 71 |
72 // ResourceRequestInfo implementation: | 72 // ResourceRequestInfo implementation: |
73 ResourceContext* GetContext() const override; | 73 ResourceContext* GetContext() const override; |
74 int GetChildID() const override; | 74 int GetChildID() const override; |
75 int GetRouteID() const override; | 75 int GetRouteID() const override; |
76 int GetOriginPID() const override; | 76 int GetOriginPID() const override; |
77 int GetRequestID() const override; | |
78 int GetRenderFrameID() const override; | 77 int GetRenderFrameID() const override; |
79 bool IsMainFrame() const override; | 78 bool IsMainFrame() const override; |
80 bool ParentIsMainFrame() const override; | 79 bool ParentIsMainFrame() const override; |
81 int GetParentRenderFrameID() const override; | 80 int GetParentRenderFrameID() const override; |
82 ResourceType GetResourceType() const override; | 81 ResourceType GetResourceType() const override; |
83 int GetProcessType() const override; | 82 int GetProcessType() const override; |
84 blink::WebReferrerPolicy GetReferrerPolicy() const override; | 83 blink::WebReferrerPolicy GetReferrerPolicy() const override; |
85 blink::WebPageVisibilityState GetVisibilityState() const override; | 84 blink::WebPageVisibilityState GetVisibilityState() const override; |
86 ui::PageTransition GetPageTransition() const override; | 85 ui::PageTransition GetPageTransition() const override; |
87 bool HasUserGesture() const override; | 86 bool HasUserGesture() const override; |
88 bool WasIgnoredByHandler() const override; | 87 bool WasIgnoredByHandler() const override; |
89 bool GetAssociatedRenderFrame(int* render_process_id, | 88 bool GetAssociatedRenderFrame(int* render_process_id, |
90 int* render_frame_id) const override; | 89 int* render_frame_id) const override; |
91 bool IsAsync() const override; | 90 bool IsAsync() const override; |
92 bool IsDownload() const override; | 91 bool IsDownload() const override; |
93 bool IsUsingLoFi() const override; | 92 bool IsUsingLoFi() const override; |
94 bool ShouldReportRawHeaders() const; | 93 bool ShouldReportRawHeaders() const; |
95 | 94 |
96 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request); | 95 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request); |
97 | 96 |
97 int GetRequestID() const; | |
nasko
2015/11/23 18:16:06
You probably want CONTENT_EXPORT on this one to en
davidben
2015/11/23 19:24:51
Done.
| |
98 CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const; | 98 CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const; |
99 GlobalRoutingID GetGlobalRoutingID() const; | 99 GlobalRoutingID GetGlobalRoutingID() const; |
100 | 100 |
101 // PlzNavigate | 101 // PlzNavigate |
102 // The id of the FrameTreeNode that initiated this request (for a navigation | 102 // The id of the FrameTreeNode that initiated this request (for a navigation |
103 // request). | 103 // request). |
104 int frame_tree_node_id() const { return frame_tree_node_id_; } | 104 int frame_tree_node_id() const { return frame_tree_node_id_; } |
105 | 105 |
106 // May be NULL (e.g., if process dies during a transfer). | 106 // May be NULL (e.g., if process dies during a transfer). |
107 ResourceMessageFilter* filter() const { | 107 ResourceMessageFilter* filter() const { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
224 bool report_raw_headers_; | 224 bool report_raw_headers_; |
225 bool is_async_; | 225 bool is_async_; |
226 bool is_using_lofi_; | 226 bool is_using_lofi_; |
227 | 227 |
228 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); | 228 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); |
229 }; | 229 }; |
230 | 230 |
231 } // namespace content | 231 } // namespace content |
232 | 232 |
233 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ | 233 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ |
OLD | NEW |