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

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

Issue 1366883002: [Reland] Post loading tasks on the appropriate WebFrameScheduler's queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UAF in BackgroundHTMLParser Created 5 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
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 <string> 10 #include <string>
11 11
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/service_worker/service_worker_types.h" 13 #include "content/common/service_worker/service_worker_types.h"
14 #include "content/public/common/referrer.h" 14 #include "content/public/common/referrer.h"
15 #include "content/public/common/request_context_frame_type.h" 15 #include "content/public/common/request_context_frame_type.h"
16 #include "content/public/common/request_context_type.h" 16 #include "content/public/common/request_context_type.h"
17 #include "content/public/common/resource_type.h" 17 #include "content/public/common/resource_type.h"
18 #include "net/base/request_priority.h" 18 #include "net/base/request_priority.h"
19 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 19 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
20 #include "third_party/WebKit/public/platform/WebTaskRunner.h"
20 #include "third_party/WebKit/public/platform/WebURLRequest.h" 21 #include "third_party/WebKit/public/platform/WebURLRequest.h"
21 #include "url/gurl.h" 22 #include "url/gurl.h"
22 23
24 namespace blink {
25 class WebTaskRunner;
26 } // namespace blink
27
23 namespace content { 28 namespace content {
24 29
25 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader(). 30 // Structure used when calling BlinkPlatformImpl::CreateResourceLoader().
26 struct CONTENT_EXPORT RequestInfo { 31 struct CONTENT_EXPORT RequestInfo {
27 RequestInfo(); 32 RequestInfo();
28 ~RequestInfo(); 33 ~RequestInfo();
29 34
30 // HTTP-style method name (e.g., "GET" or "POST"). 35 // HTTP-style method name (e.g., "GET" or "POST").
31 std::string method; 36 std::string method;
32 37
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // credentials or default credentials may still be used for authentication. 108 // credentials or default credentials may still be used for authentication.
104 bool do_not_prompt_for_login; 109 bool do_not_prompt_for_login;
105 110
106 // True if the actual headers from the network stack should be reported 111 // True if the actual headers from the network stack should be reported
107 // to the renderer 112 // to the renderer
108 bool report_raw_headers; 113 bool report_raw_headers;
109 114
110 // Extra data associated with this request. We do not own this pointer. 115 // Extra data associated with this request. We do not own this pointer.
111 blink::WebURLRequest::ExtraData* extra_data; 116 blink::WebURLRequest::ExtraData* extra_data;
112 117
118 // Optional, the specific task queue to execute loading tasks on.
119 scoped_ptr<blink::WebTaskRunner> loading_web_task_runner;
120
113 private: 121 private:
114 DISALLOW_COPY_AND_ASSIGN(RequestInfo); 122 DISALLOW_COPY_AND_ASSIGN(RequestInfo);
115 }; 123 };
116 124
117 } // namespace content 125 } // namespace content
118 126
119 #endif // CONTENT_CHILD_REQUEST_INFO_H_ 127 #endif // CONTENT_CHILD_REQUEST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698