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

Side by Side Diff: content/child/request_info.h

Issue 2114213002: Fix loading placeholders for Lo-Fi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/child/request_extra_data.cc ('k') | content/child/request_info.cc » ('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_CHILD_REQUEST_INFO_H_ 5 #ifndef CONTENT_CHILD_REQUEST_INFO_H_
6 #define CONTENT_CHILD_REQUEST_INFO_H_ 6 #define CONTENT_CHILD_REQUEST_INFO_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/common/navigation_params.h"
15 #include "content/common/service_worker/service_worker_types.h" 16 #include "content/common/service_worker/service_worker_types.h"
16 #include "content/public/common/referrer.h" 17 #include "content/public/common/referrer.h"
17 #include "content/public/common/request_context_frame_type.h" 18 #include "content/public/common/request_context_frame_type.h"
18 #include "content/public/common/request_context_type.h" 19 #include "content/public/common/request_context_type.h"
19 #include "content/public/common/resource_type.h" 20 #include "content/public/common/resource_type.h"
20 #include "net/base/request_priority.h" 21 #include "net/base/request_priority.h"
21 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 22 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
22 #include "third_party/WebKit/public/platform/WebTaskRunner.h" 23 #include "third_party/WebKit/public/platform/WebTaskRunner.h"
23 #include "third_party/WebKit/public/platform/WebURLRequest.h" 24 #include "third_party/WebKit/public/platform/WebURLRequest.h"
24 #include "url/gurl.h" 25 #include "url/gurl.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // Extra data associated with this request. We do not own this pointer. 122 // Extra data associated with this request. We do not own this pointer.
122 blink::WebURLRequest::ExtraData* extra_data; 123 blink::WebURLRequest::ExtraData* extra_data;
123 124
124 // Optional, the specific task queue to execute loading tasks on. 125 // Optional, the specific task queue to execute loading tasks on.
125 std::unique_ptr<blink::WebTaskRunner> loading_web_task_runner; 126 std::unique_ptr<blink::WebTaskRunner> loading_web_task_runner;
126 127
127 // PlzNavigate: the stream URL to request during navigations to get access to 128 // PlzNavigate: the stream URL to request during navigations to get access to
128 // the ResourceBody that has already been fetched by the browser process. 129 // the ResourceBody that has already been fetched by the browser process.
129 GURL resource_body_stream_url; 130 GURL resource_body_stream_url;
130 131
132 // Whether or not to request a LoFi version of the document or let the browser
133 // decide.
134 LoFiState lofi_state;
135
131 private: 136 private:
132 DISALLOW_COPY_AND_ASSIGN(RequestInfo); 137 DISALLOW_COPY_AND_ASSIGN(RequestInfo);
133 }; 138 };
134 139
135 } // namespace content 140 } // namespace content
136 141
137 #endif // CONTENT_CHILD_REQUEST_INFO_H_ 142 #endif // CONTENT_CHILD_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « content/child/request_extra_data.cc ('k') | content/child/request_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698