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

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

Issue 2413663003: Expose GlobalRequestID in NavigationHandle and ResourceRequestInfo. (Closed)
Patch Set: Addressed comments 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
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 virtual bool IsDownload() const = 0; 156 virtual bool IsDownload() const = 0;
156 157
157 // Whether this request if using Lo-Fi mode. 158 // Whether this request if using Lo-Fi mode.
158 virtual bool IsUsingLoFi() const = 0; 159 virtual bool IsUsingLoFi() const = 0;
159 160
160 // PlzNavigate 161 // PlzNavigate
161 // Only used for navigations. Returns opaque data set by the embedder on the 162 // Only used for navigations. Returns opaque data set by the embedder on the
162 // UI thread at the beginning of navigation. 163 // UI thread at the beginning of navigation.
163 virtual NavigationUIData* GetNavigationUIData() const = 0; 164 virtual NavigationUIData* GetNavigationUIData() const = 0;
164 165
166 virtual GlobalRequestID GetGlobalRequestID() const = 0;
Charlie Reis 2016/10/29 00:07:10 nit: All methods in content/public should be docum
Not at Google. Contact bengr 2016/11/01 21:11:06 Done.
167
165 protected: 168 protected:
166 virtual ~ResourceRequestInfo() {} 169 virtual ~ResourceRequestInfo() {}
167 }; 170 };
168 171
169 } // namespace content 172 } // namespace content
170 173
171 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_ 174 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_INFO_H_
OLDNEW
« content/public/browser/navigation_handle.h ('K') | « content/public/browser/navigation_handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698