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

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

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