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

Side by Side Diff: content/browser/loader/resource_request_info_impl.h

Issue 2180933002: Add experimental code behind a flag for Content Size Policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: while -> for Created 4 years, 4 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_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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/supports_user_data.h" 15 #include "base/supports_user_data.h"
16 #include "content/common/resource_request_body_impl.h" 16 #include "content/common/resource_request_body_impl.h"
17 #include "content/public/browser/resource_request_info.h" 17 #include "content/public/browser/resource_request_info.h"
18 #include "content/public/common/referrer.h" 18 #include "content/public/common/referrer.h"
19 #include "content/public/common/resource_type.h" 19 #include "content/public/common/resource_type.h"
20 #include "net/base/load_states.h" 20 #include "net/base/load_states.h"
21 21
22 namespace content { 22 namespace content {
23 class CrossSiteResourceHandler; 23 class CrossSiteResourceHandler;
24 class DetachableResourceHandler; 24 class DetachableResourceHandler;
25 class ResourceContext; 25 class ResourceContext;
26 class ResourceMessageFilter; 26 class ResourceMessageFilter;
27 struct GlobalRequestID; 27 struct GlobalRequestID;
28 struct GlobalRoutingID; 28 struct GlobalRoutingID;
29 struct GlobalFrameRoutingId;
29 30
30 // Holds the data ResourceDispatcherHost associates with each request. 31 // Holds the data ResourceDispatcherHost associates with each request.
31 // Retrieve this data by calling ResourceDispatcherHost::InfoForRequest. 32 // Retrieve this data by calling ResourceDispatcherHost::InfoForRequest.
32 class ResourceRequestInfoImpl : public ResourceRequestInfo, 33 class ResourceRequestInfoImpl : public ResourceRequestInfo,
33 public base::SupportsUserData::Data { 34 public base::SupportsUserData::Data {
34 public: 35 public:
35 // Returns the ResourceRequestInfoImpl associated with the given URLRequest. 36 // Returns the ResourceRequestInfoImpl associated with the given URLRequest.
36 CONTENT_EXPORT static ResourceRequestInfoImpl* ForRequest( 37 CONTENT_EXPORT static ResourceRequestInfoImpl* ForRequest(
37 net::URLRequest* request); 38 net::URLRequest* request);
38 39
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool IsDownload() const override; 95 bool IsDownload() const override;
95 bool IsUsingLoFi() const override; 96 bool IsUsingLoFi() const override;
96 bool ShouldReportRawHeaders() const; 97 bool ShouldReportRawHeaders() const;
97 98
98 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request); 99 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request);
99 100
100 CONTENT_EXPORT int GetRequestID() const; 101 CONTENT_EXPORT int GetRequestID() const;
101 CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const; 102 CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const;
102 GlobalRoutingID GetGlobalRoutingID() const; 103 GlobalRoutingID GetGlobalRoutingID() const;
103 104
105 GlobalFrameRoutingId GetGlobalFrameRoutingId() const;
106
104 // PlzNavigate 107 // PlzNavigate
105 // The id of the FrameTreeNode that initiated this request (for a navigation 108 // The id of the FrameTreeNode that initiated this request (for a navigation
106 // request). 109 // request).
107 int frame_tree_node_id() const { return frame_tree_node_id_; } 110 int frame_tree_node_id() const { return frame_tree_node_id_; }
108 111
109 // May be NULL (e.g., if process dies during a transfer). 112 // May be NULL (e.g., if process dies during a transfer).
110 ResourceMessageFilter* filter() const { 113 ResourceMessageFilter* filter() const {
111 return filter_.get(); 114 return filter_.get();
112 } 115 }
113 116
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 const std::string original_headers_; 243 const std::string original_headers_;
241 scoped_refptr<ResourceRequestBodyImpl> body_; 244 scoped_refptr<ResourceRequestBodyImpl> body_;
242 bool initiated_in_secure_context_; 245 bool initiated_in_secure_context_;
243 246
244 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); 247 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl);
245 }; 248 };
246 249
247 } // namespace content 250 } // namespace content
248 251
249 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ 252 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/browser/loader/resource_request_info_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698