OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_COMMON_NAVIGATION_PARAMS_H_ | 5 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 // following a renderer-initiated navigation request. | 120 // following a renderer-initiated navigation request. |
121 struct CONTENT_EXPORT BeginNavigationParams { | 121 struct CONTENT_EXPORT BeginNavigationParams { |
122 // TODO(clamy): See if it is possible to reuse this in | 122 // TODO(clamy): See if it is possible to reuse this in |
123 // ResourceMsg_Request_Params. | 123 // ResourceMsg_Request_Params. |
124 BeginNavigationParams(); | 124 BeginNavigationParams(); |
125 BeginNavigationParams(std::string method, | 125 BeginNavigationParams(std::string method, |
126 std::string headers, | 126 std::string headers, |
127 int load_flags, | 127 int load_flags, |
128 bool has_user_gesture, | 128 bool has_user_gesture, |
129 bool skip_service_worker, | 129 bool skip_service_worker, |
130 RequestContextType request_context_type); | 130 RequestContextType request_context_type, |
131 double renderer_navigation_start); | |
clamy
2015/10/28 12:40:01
Instead of adding a new value in BeginNavigationPa
| |
131 | 132 |
132 // The request method: GET, POST, etc. | 133 // The request method: GET, POST, etc. |
133 std::string method; | 134 std::string method; |
134 | 135 |
135 // Additional HTTP request headers. | 136 // Additional HTTP request headers. |
136 std::string headers; | 137 std::string headers; |
137 | 138 |
138 // net::URLRequest load flags (net::LOAD_NORMAL) by default). | 139 // net::URLRequest load flags (net::LOAD_NORMAL) by default). |
139 int load_flags; | 140 int load_flags; |
140 | 141 |
141 // True if the request was user initiated. | 142 // True if the request was user initiated. |
142 bool has_user_gesture; | 143 bool has_user_gesture; |
143 | 144 |
144 // True if the ServiceWorker should be skipped. | 145 // True if the ServiceWorker should be skipped. |
145 bool skip_service_worker; | 146 bool skip_service_worker; |
146 | 147 |
147 // Indicates the request context type. | 148 // Indicates the request context type. |
148 RequestContextType request_context_type; | 149 RequestContextType request_context_type; |
150 | |
151 // The time the navigation started in the renderer. | |
152 double renderer_navigation_start; | |
149 }; | 153 }; |
150 | 154 |
151 // Provided by the browser ----------------------------------------------------- | 155 // Provided by the browser ----------------------------------------------------- |
152 // | 156 // |
153 // These structs are sent by the browser to the renderer to start/commit a | 157 // These structs are sent by the browser to the renderer to start/commit a |
154 // navigation depending on whether browser-side navigation is enabled. | 158 // navigation depending on whether browser-side navigation is enabled. |
155 // Parameters used both in the current architecture and PlzNavigate should be | 159 // Parameters used both in the current architecture and PlzNavigate should be |
156 // put in RequestNavigationParams. Parameters only used by the current | 160 // put in RequestNavigationParams. Parameters only used by the current |
157 // architecture should go in StartNavigationParams. | 161 // architecture should go in StartNavigationParams. |
158 | 162 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
305 ~NavigationParams(); | 309 ~NavigationParams(); |
306 | 310 |
307 CommonNavigationParams common_params; | 311 CommonNavigationParams common_params; |
308 StartNavigationParams start_params; | 312 StartNavigationParams start_params; |
309 RequestNavigationParams request_params; | 313 RequestNavigationParams request_params; |
310 }; | 314 }; |
311 | 315 |
312 } // namespace content | 316 } // namespace content |
313 | 317 |
314 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 318 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
OLD | NEW |