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_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/common/resource_type.h" | 10 #include "content/public/common/resource_type.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // The IPC route identifier for this request (this identifies the RenderView | 88 // The IPC route identifier for this request (this identifies the RenderView |
89 // or like-thing in the renderer that the request gets routed to). | 89 // or like-thing in the renderer that the request gets routed to). |
90 // To get a WebContents, use GetWebContentsGetterForRequest instead. | 90 // To get a WebContents, use GetWebContentsGetterForRequest instead. |
91 // Don't use this method for new code, as RenderViews are going away. | 91 // Don't use this method for new code, as RenderViews are going away. |
92 virtual int GetRouteID() const = 0; | 92 virtual int GetRouteID() const = 0; |
93 | 93 |
94 // The pid of the originating process, if the request is sent on behalf of a | 94 // The pid of the originating process, if the request is sent on behalf of a |
95 // another process. Otherwise it is 0. | 95 // another process. Otherwise it is 0. |
96 virtual int GetOriginPID() const = 0; | 96 virtual int GetOriginPID() const = 0; |
97 | 97 |
| 98 // Returns the FrameTreeNode ID for this frame. This ID is browser-global and |
| 99 // uniquely identifies a frame that hosts content. |
| 100 virtual int GetFrameTreeNodeId() const = 0; |
| 101 |
98 // The IPC route identifier of the RenderFrame. | 102 // The IPC route identifier of the RenderFrame. |
99 // To get a WebContents, use GetWebContentsGetterForRequest instead. | 103 // To get a WebContents, use GetWebContentsGetterForRequest instead. |
100 // TODO(jam): once all navigation and resource requests are sent between | 104 // TODO(jam): once all navigation and resource requests are sent between |
101 // frames and RenderView/RenderViewHost aren't involved we can remove this and | 105 // frames and RenderView/RenderViewHost aren't involved we can remove this and |
102 // just use GetRouteID above. | 106 // just use GetRouteID above. |
103 virtual int GetRenderFrameID() const = 0; | 107 virtual int GetRenderFrameID() const = 0; |
104 | 108 |
105 // True if GetRenderFrameID() represents a main frame in the RenderView. | 109 // True if GetRenderFrameID() represents a main frame in the RenderView. |
106 virtual bool IsMainFrame() const = 0; | 110 virtual bool IsMainFrame() const = 0; |
107 | 111 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // Whether this request if using Lo-Fi mode. | 156 // Whether this request if using Lo-Fi mode. |
153 virtual bool IsUsingLoFi() const = 0; | 157 virtual bool IsUsingLoFi() const = 0; |
154 | 158 |
155 protected: | 159 protected: |
156 virtual ~ResourceRequestInfo() {} | 160 virtual ~ResourceRequestInfo() {} |
157 }; | 161 }; |
158 | 162 |
159 } // namespace content | 163 } // namespace content |
160 | 164 |
161 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ | 165 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ |
OLD | NEW |