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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h

Issue 2804843005: Implement the infrastructure of creating WorkerFetchContext in worker global scope. (Closed)
Patch Set: rebase Created 3 years, 8 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: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
index 4abdcf3a14a0d988b58bf24be9f7ca31f141c76a..a361f2c3f3f9dd299563dcc574b82bc079208c4b 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h
@@ -51,6 +51,7 @@ class ConsoleMessage;
class ExceptionState;
class V8AbstractEventListener;
class WorkerClients;
+class WorkerFetchContext;
class WorkerLocation;
class WorkerNavigator;
class WorkerThread;
@@ -153,6 +154,9 @@ class CORE_EXPORT WorkerGlobalScope
WorkerClients* Clients() const { return worker_clients_.Get(); }
+ // Availavle only when off-main-thread-fetch is enabled.
nhiroki 2017/04/18 07:56:41 s/Availavle/Available/
horo 2017/04/18 12:53:34 Done.
+ WorkerFetchContext* FetchContext();
+
DECLARE_VIRTUAL_TRACE();
protected:
@@ -208,6 +212,8 @@ class CORE_EXPORT WorkerGlobalScope
HeapHashMap<int, Member<ErrorEvent>> pending_error_events_;
int last_pending_error_event_id_;
+
+ Member<WorkerFetchContext> fetch_context_;
};
DEFINE_TYPE_CASTS(WorkerGlobalScope,

Powered by Google App Engine
This is Rietveld 408576698