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

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

Issue 2413663003: Expose GlobalRequestID in NavigationHandle and ResourceRequestInfo. (Closed)
Patch Set: Use OnURLRequestDestroyed Created 4 years, 1 month 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
« no previous file with comments | « content/public/browser/navigation_handle.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser/global_request_id.h"
10 #include "content/public/common/resource_type.h" 11 #include "content/public/common/resource_type.h"
11 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 12 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
12 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 13 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
13 #include "ui/base/page_transition_types.h" 14 #include "ui/base/page_transition_types.h"
14 15
15 namespace net { 16 namespace net {
16 class URLRequest; 17 class URLRequest;
17 } 18 }
18 19
19 namespace content { 20 namespace content {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // The child process unique ID of the requestor. 86 // The child process unique ID of the requestor.
86 // To get a WebContents, use GetWebContentsGetterForRequest instead. 87 // To get a WebContents, use GetWebContentsGetterForRequest instead.
87 virtual int GetChildID() const = 0; 88 virtual int GetChildID() const = 0;
88 89
89 // The IPC route identifier for this request (this identifies the RenderView 90 // The IPC route identifier for this request (this identifies the RenderView
90 // or like-thing in the renderer that the request gets routed to). 91 // or like-thing in the renderer that the request gets routed to).
91 // To get a WebContents, use GetWebContentsGetterForRequest instead. 92 // To get a WebContents, use GetWebContentsGetterForRequest instead.
92 // Don't use this method for new code, as RenderViews are going away. 93 // Don't use this method for new code, as RenderViews are going away.
93 virtual int GetRouteID() const = 0; 94 virtual int GetRouteID() const = 0;
94 95
96 // The globally unique identifier for this request.
97 virtual GlobalRequestID GetGlobalRequestID() const = 0;
98
95 // The pid of the originating process, if the request is sent on behalf of a 99 // The pid of the originating process, if the request is sent on behalf of a
96 // another process. Otherwise it is 0. 100 // another process. Otherwise it is 0.
97 virtual int GetOriginPID() const = 0; 101 virtual int GetOriginPID() const = 0;
98 102
99 // Returns the FrameTreeNode ID for this frame. This ID is browser-global and 103 // Returns the FrameTreeNode ID for this frame. This ID is browser-global and
100 // uniquely identifies a frame that hosts content. 104 // uniquely identifies a frame that hosts content.
101 virtual int GetFrameTreeNodeId() const = 0; 105 virtual int GetFrameTreeNodeId() const = 0;
102 106
103 // The IPC route identifier of the RenderFrame. 107 // The IPC route identifier of the RenderFrame.
104 // To get a WebContents, use GetWebContentsGetterForRequest instead. 108 // To get a WebContents, use GetWebContentsGetterForRequest instead.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // UI thread at the beginning of navigation. 166 // UI thread at the beginning of navigation.
163 virtual NavigationUIData* GetNavigationUIData() const = 0; 167 virtual NavigationUIData* GetNavigationUIData() const = 0;
164 168
165 protected: 169 protected:
166 virtual ~ResourceRequestInfo() {} 170 virtual ~ResourceRequestInfo() {}
167 }; 171 };
168 172
169 } // namespace content 173 } // namespace content
170 174
171 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 175 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « content/public/browser/navigation_handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698