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

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

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another GYP fix 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
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 "base/memory/ref_counted.h"
14 #include "content/common/content_export.h" 15 #include "content/common/content_export.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/WebURLRequest.h" 23 #include "third_party/WebKit/public/platform/WebURLRequest.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 #include "url/origin.h" 25 #include "url/origin.h"
26 26
27 namespace blink { 27 namespace base {
28 class WebTaskRunner; 28 class SingleThreadTaskRunner;
29 } // namespace blink 29 }
30 30
31 namespace content { 31 namespace content {
32 32
33 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader(). 33 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader().
34 struct CONTENT_EXPORT RequestInfo { 34 struct CONTENT_EXPORT RequestInfo {
35 RequestInfo(); 35 RequestInfo();
36 ~RequestInfo(); 36 ~RequestInfo();
37 37
38 // HTTP-style method name (e.g., "GET" or "POST"). 38 // HTTP-style method name (e.g., "GET" or "POST").
39 std::string method; 39 std::string method;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 bool do_not_prompt_for_login; 115 bool do_not_prompt_for_login;
116 116
117 // True if the actual headers from the network stack should be reported 117 // True if the actual headers from the network stack should be reported
118 // to the renderer 118 // to the renderer
119 bool report_raw_headers; 119 bool report_raw_headers;
120 120
121 // Extra data associated with this request. We do not own this pointer. 121 // Extra data associated with this request. We do not own this pointer.
122 blink::WebURLRequest::ExtraData* extra_data; 122 blink::WebURLRequest::ExtraData* extra_data;
123 123
124 // Optional, the specific task queue to execute loading tasks on. 124 // Optional, the specific task queue to execute loading tasks on.
125 std::unique_ptr<blink::WebTaskRunner> loading_web_task_runner; 125 scoped_refptr<base::SingleThreadTaskRunner> loading_task_runner;
126 126
127 // PlzNavigate: the stream URL to request during navigations to get access to 127 // PlzNavigate: the stream URL to request during navigations to get access to
128 // the ResourceBody that has already been fetched by the browser process. 128 // the ResourceBody that has already been fetched by the browser process.
129 GURL resource_body_stream_url; 129 GURL resource_body_stream_url;
130 130
131 private: 131 private:
132 DISALLOW_COPY_AND_ASSIGN(RequestInfo); 132 DISALLOW_COPY_AND_ASSIGN(RequestInfo);
133 }; 133 };
134 134
135 } // namespace content 135 } // namespace content
136 136
137 #endif // CONTENT_CHILD_REQUEST_INFO_H_ 137 #endif // CONTENT_CHILD_REQUEST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698