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

Side by Side Diff: content/common/navigation_params.h

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Rebase Created 4 years, 2 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/media/android/media_info_loader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/common/frame_message_enums.h" 17 #include "content/common/frame_message_enums.h"
18 #include "content/common/resource_request_body_impl.h" 18 #include "content/common/resource_request_body_impl.h"
19 #include "content/public/common/page_state.h" 19 #include "content/public/common/page_state.h"
20 #include "content/public/common/referrer.h" 20 #include "content/public/common/referrer.h"
21 #include "content/public/common/request_context_type.h" 21 #include "content/public/common/request_context_type.h"
22 #include "content/public/common/resource_response.h"
22 #include "ui/base/page_transition_types.h" 23 #include "ui/base/page_transition_types.h"
23 #include "url/gurl.h" 24 #include "url/gurl.h"
24 25
25 namespace content { 26 namespace content {
26 27
27 // The LoFi state which determines whether to add the Lo-Fi header. 28 // The LoFi state which determines whether to add the Lo-Fi header.
28 enum LoFiState { 29 enum LoFiState {
29 // Let the browser process decide whether or not to request the Lo-Fi version. 30 // Let the browser process decide whether or not to request the Lo-Fi version.
30 LOFI_UNSPECIFIED = 0, 31 LOFI_UNSPECIFIED = 0,
31 32
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 RequestNavigationParams(const RequestNavigationParams& other); 235 RequestNavigationParams(const RequestNavigationParams& other);
235 ~RequestNavigationParams(); 236 ~RequestNavigationParams();
236 237
237 // Whether or not the user agent override string should be used. 238 // Whether or not the user agent override string should be used.
238 bool is_overriding_user_agent; 239 bool is_overriding_user_agent;
239 240
240 // Any redirect URLs that occurred before |url|. Useful for cross-process 241 // Any redirect URLs that occurred before |url|. Useful for cross-process
241 // navigations; defaults to empty. 242 // navigations; defaults to empty.
242 std::vector<GURL> redirects; 243 std::vector<GURL> redirects;
243 244
245 // The ResourceResponseInfos received during redirects.
246 std::vector<ResourceResponseInfo> redirect_response;
247
244 // Whether or not this url should be allowed to access local file:// 248 // Whether or not this url should be allowed to access local file://
245 // resources. 249 // resources.
246 bool can_load_local_resources; 250 bool can_load_local_resources;
247 251
248 // The time the request was created. This is used by the old performance 252 // The time the request was created. This is used by the old performance
249 // infrastructure to set up DocumentState associated with the RenderView. 253 // infrastructure to set up DocumentState associated with the RenderView.
250 // TODO(ppi): make it go away. 254 // TODO(ppi): make it go away.
251 base::Time request_time; 255 base::Time request_time;
252 256
253 // Opaque history state (received by ViewHostMsg_UpdateState). 257 // Opaque history state (received by ViewHostMsg_UpdateState).
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 ~NavigationParams(); 354 ~NavigationParams();
351 355
352 CommonNavigationParams common_params; 356 CommonNavigationParams common_params;
353 StartNavigationParams start_params; 357 StartNavigationParams start_params;
354 RequestNavigationParams request_params; 358 RequestNavigationParams request_params;
355 }; 359 };
356 360
357 } // namespace content 361 } // namespace content
358 362
359 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ 363 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/media/android/media_info_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698