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

Side by Side Diff: content/public/browser/resource_request_info.h

Issue 2331343005: PlzNavigate: Get StreamPrivate API to work. (Closed)
Patch Set: Fix DCHECK leading to browser test redness Created 4 years, 2 months 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
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_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
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
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_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698