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

Side by Side Diff: content/browser/loader/resource_request_info_impl.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
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 #include <utility>
10 11
11 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
15 #include "base/supports_user_data.h" 16 #include "base/supports_user_data.h"
16 #include "content/browser/service_worker/service_worker_context_wrapper.h" 17 #include "content/browser/service_worker/service_worker_context_wrapper.h"
17 #include "content/common/resource_request_body_impl.h" 18 #include "content/common/resource_request_body_impl.h"
18 #include "content/public/browser/navigation_ui_data.h" 19 #include "content/public/browser/navigation_ui_data.h"
19 #include "content/public/browser/resource_request_info.h" 20 #include "content/public/browser/resource_request_info.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const std::string& original_headers, 72 const std::string& original_headers,
72 const scoped_refptr<ResourceRequestBodyImpl> body, 73 const scoped_refptr<ResourceRequestBodyImpl> body,
73 bool initiated_in_secure_context); 74 bool initiated_in_secure_context);
74 ~ResourceRequestInfoImpl() override; 75 ~ResourceRequestInfoImpl() override;
75 76
76 // ResourceRequestInfo implementation: 77 // ResourceRequestInfo implementation:
77 WebContentsGetter GetWebContentsGetterForRequest() const override; 78 WebContentsGetter GetWebContentsGetterForRequest() const override;
78 ResourceContext* GetContext() const override; 79 ResourceContext* GetContext() const override;
79 int GetChildID() const override; 80 int GetChildID() const override;
80 int GetRouteID() const override; 81 int GetRouteID() const override;
82 GlobalRequestID GetGlobalRequestID() const override;
81 int GetOriginPID() const override; 83 int GetOriginPID() const override;
82 int GetRenderFrameID() const override; 84 int GetRenderFrameID() const override;
83 int GetFrameTreeNodeId() const override; 85 int GetFrameTreeNodeId() const override;
84 bool IsMainFrame() const override; 86 bool IsMainFrame() const override;
85 bool ParentIsMainFrame() const override; 87 bool ParentIsMainFrame() const override;
86 ResourceType GetResourceType() const override; 88 ResourceType GetResourceType() const override;
87 int GetProcessType() const override; 89 int GetProcessType() const override;
88 blink::WebReferrerPolicy GetReferrerPolicy() const override; 90 blink::WebReferrerPolicy GetReferrerPolicy() const override;
89 blink::WebPageVisibilityState GetVisibilityState() const override; 91 blink::WebPageVisibilityState GetVisibilityState() const override;
90 ui::PageTransition GetPageTransition() const override; 92 ui::PageTransition GetPageTransition() const override;
91 bool HasUserGesture() const override; 93 bool HasUserGesture() const override;
92 bool WasIgnoredByHandler() const override; 94 bool WasIgnoredByHandler() const override;
93 bool GetAssociatedRenderFrame(int* render_process_id, 95 bool GetAssociatedRenderFrame(int* render_process_id,
94 int* render_frame_id) const override; 96 int* render_frame_id) const override;
95 bool IsAsync() const override; 97 bool IsAsync() const override;
96 bool IsDownload() const override; 98 bool IsDownload() const override;
97 bool IsUsingLoFi() const override; 99 bool IsUsingLoFi() const override;
98 bool ShouldReportRawHeaders() const; 100 bool ShouldReportRawHeaders() const;
99 NavigationUIData* GetNavigationUIData() const override; 101 NavigationUIData* GetNavigationUIData() const override;
100 102
101 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request); 103 CONTENT_EXPORT void AssociateWithRequest(net::URLRequest* request);
102 104
103 CONTENT_EXPORT int GetRequestID() const; 105 CONTENT_EXPORT int GetRequestID() const;
104 CONTENT_EXPORT GlobalRequestID GetGlobalRequestID() const;
105 GlobalRoutingID GetGlobalRoutingID() const; 106 GlobalRoutingID GetGlobalRoutingID() const;
106 107
107 // PlzNavigate 108 // PlzNavigate
108 // The id of the FrameTreeNode that initiated this request (for a navigation 109 // The id of the FrameTreeNode that initiated this request (for a navigation
109 // request). 110 // request).
110 int frame_tree_node_id() const { return frame_tree_node_id_; } 111 int frame_tree_node_id() const { return frame_tree_node_id_; }
111 112
112 // May be NULL (e.g., if process dies during a transfer). 113 // May be NULL (e.g., if process dies during a transfer).
113 ResourceMessageFilter* filter() const { 114 ResourceMessageFilter* filter() const {
114 return filter_.get(); 115 return filter_.get();
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 bool initiated_in_secure_context_; 253 bool initiated_in_secure_context_;
253 std::unique_ptr<NavigationUIData> navigation_ui_data_; 254 std::unique_ptr<NavigationUIData> navigation_ui_data_;
254 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 255 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
255 256
256 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); 257 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl);
257 }; 258 };
258 259
259 } // namespace content 260 } // namespace content
260 261
261 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_ 262 #endif // CONTENT_BROWSER_LOADER_RESOURCE_REQUEST_INFO_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.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