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

Unified 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: Added a clone method to WebTaskRunner which lets us solve the lifetime issue. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/child/request_info.h
diff --git a/content/child/request_info.h b/content/child/request_info.h
index e610ac8917554029957dc123b36c938033908f7b..299b2d2b9986edaa3a22eb3ddf8d840c1c1215da 100644
--- a/content/child/request_info.h
+++ b/content/child/request_info.h
@@ -9,6 +9,7 @@
#include <string>
+#include "base/single_thread_task_runner.h"
#include "content/common/content_export.h"
#include "content/common/service_worker/service_worker_types.h"
#include "content/public/common/referrer.h"
@@ -20,6 +21,10 @@
#include "third_party/WebKit/public/platform/WebURLRequest.h"
#include "url/gurl.h"
+namespace blink {
+class WebTaskRunner;
+} // namespace blink
+
namespace content {
// Structure used when calling BlinkPlatformImpl::CreateResourceLoader().
@@ -110,6 +115,9 @@ struct CONTENT_EXPORT RequestInfo {
// Extra data associated with this request. We do not own this pointer.
blink::WebURLRequest::ExtraData* extra_data;
+ // Optional, the specific task queue to execute loading tasks on.
+ blink::WebTaskRunner* loading_web_task_runner;
Sami 2015/09/29 11:22:46 Who owns this? Should this be a scoped_ptr?
alex clarke (OOO till 29th) 2015/09/29 16:10:36 Done.
+
private:
DISALLOW_COPY_AND_ASSIGN(RequestInfo);
};

Powered by Google App Engine
This is Rietveld 408576698