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

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

Issue 1564963002: [on hold] Remove dependency on RenderViewHost from LoadState notifications Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke@ + nasko@ review Created 4 years, 6 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/public/browser/resource_request_info.h" 16 #include "content/public/browser/resource_request_info.h"
17 #include "content/public/common/referrer.h" 17 #include "content/public/common/referrer.h"
18 #include "content/public/common/resource_type.h" 18 #include "content/public/common/resource_type.h"
19 #include "net/base/load_states.h" 19 #include "net/base/load_states.h"
20 20
21 namespace content { 21 namespace content {
22 class CrossSiteResourceHandler; 22 class CrossSiteResourceHandler;
23 class DetachableResourceHandler; 23 class DetachableResourceHandler;
24 class ResourceContext; 24 class ResourceContext;
25 class ResourceMessageFilter; 25 class ResourceMessageFilter;
26 struct GlobalRequestID; 26 struct GlobalRequestID;
27 struct GlobalRoutingID; 27 struct GlobalFrameRoutingId;
28 28
29 // Holds the data ResourceDispatcherHost associates with each request. 29 // Holds the data ResourceDispatcherHost associates with each request.
30 // Retrieve this data by calling ResourceDispatcherHost::InfoForRequest. 30 // Retrieve this data by calling ResourceDispatcherHost::InfoForRequest.
31 class ResourceRequestInfoImpl : public ResourceRequestInfo, 31 class ResourceRequestInfoImpl : public ResourceRequestInfo,
32 public base::SupportsUserData::Data { 32 public base::SupportsUserData::Data {
33 public: 33 public:
34 // Returns the ResourceRequestInfoImpl associated with the given URLRequest. 34 // Returns the ResourceRequestInfoImpl associated with the given URLRequest.
35 CONTENT_EXPORT static ResourceRequestInfoImpl* ForRequest( 35 CONTENT_EXPORT static ResourceRequestInfoImpl* ForRequest(
36 net::URLRequest* request); 36 net::URLRequest* request);
37 37
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 int* render_frame_id) const override; 89 int* render_frame_id) const override;
90 bool IsAsync() const override; 90 bool IsAsync() const override;
91 bool IsDownload() const override; 91 bool IsDownload() const override;
92 bool IsUsingLoFi() const override; 92 bool IsUsingLoFi() const override;
93 bool ShouldReportRawHeaders() const; 93 bool ShouldReportRawHeaders() const;
94 94
95 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request); 95 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request);
96 96
97 CONTENT_EXPORT int GetRequestID() const; 97 CONTENT_EXPORT int GetRequestID() const;
98 CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const; 98 CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const;
99 GlobalRoutingID GetGlobalRoutingID() const; 99 GlobalFrameRoutingId GetGlobalFrameRoutingId() const;
100 100
101 // PlzNavigate 101 // PlzNavigate
102 // The id of the FrameTreeNode that initiated this request (for a navigation 102 // The id of the FrameTreeNode that initiated this request (for a navigation
103 // request). 103 // request).
104 int frame_tree_node_id() const { return frame_tree_node_id_; } 104 int frame_tree_node_id() const { return frame_tree_node_id_; }
105 105
106 // May be NULL (e.g., if process dies during a transfer). 106 // May be NULL (e.g., if process dies during a transfer).
107 ResourceMessageFilter* filter() const { 107 ResourceMessageFilter* filter() const {
108 return filter_.get(); 108 return filter_.get();
109 } 109 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 bool is_async_; 225 bool is_async_;
226 bool is_using_lofi_; 226 bool is_using_lofi_;
227 const std::string original_headers_; 227 const std::string original_headers_;
228 228
229 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); 229 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl);
230 }; 230 };
231 231
232 } // namespace content 232 } // namespace content
233 233
234 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ 234 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698