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

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

Issue 2196833002: Propagate proper FROM_HERE to postTask() in worker code (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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h b/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h
index 62af4c7a265947434347171b693724bfab4cb25b..225a0aaca80a19c0dd2cb1768dd8813e6b62942b 100644
--- a/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h
+++ b/third_party/WebKit/Source/core/workers/WorkerLoaderProxy.h
@@ -33,6 +33,7 @@
#include "core/CoreExport.h"
#include "core/dom/ExecutionContext.h"
+#include "public/platform/WebTraceLocation.h"
#include "wtf/Forward.h"
#include "wtf/ThreadSafeRefCounted.h"
@@ -60,11 +61,11 @@ public:
virtual ~WorkerLoaderProxyProvider() { }
// Posts a task to the thread which runs the loading code (normally, the main thread).
- virtual void postTaskToLoader(std::unique_ptr<ExecutionContextTask>) = 0;
+ virtual void postTaskToLoader(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>) = 0;
// Posts callbacks from loading code to the WorkerGlobalScope.
// Returns true if the task was posted successfully.
- virtual bool postTaskToWorkerGlobalScope(std::unique_ptr<ExecutionContextTask>) = 0;
+ virtual bool postTaskToWorkerGlobalScope(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>) = 0;
};
class CORE_EXPORT WorkerLoaderProxy final : public ThreadSafeRefCounted<WorkerLoaderProxy> {
@@ -76,8 +77,8 @@ public:
~WorkerLoaderProxy();
- void postTaskToLoader(std::unique_ptr<ExecutionContextTask>);
- bool postTaskToWorkerGlobalScope(std::unique_ptr<ExecutionContextTask>);
+ void postTaskToLoader(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>);
+ bool postTaskToWorkerGlobalScope(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>);
// Notification from the provider that it can no longer be
// accessed. An implementation of WorkerLoaderProxyProvider is

Powered by Google App Engine
This is Rietveld 408576698