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

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

Issue 2878933003: Makes WorkerInspectorProxy work with ExecutionContext instead of Document (Closed)
Patch Set: . Created 3 years, 7 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/WorkerInspectorProxy.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.h b/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.h
index 9b134e68bb18bc99593e2a49a99430470f879be7..dd45a5bf03303d38cc36013206d481ab2788d4a9 100644
--- a/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.h
+++ b/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.h
@@ -13,7 +13,7 @@
namespace blink {
-class Document;
+class ExecutionContext;
class KURL;
// A proxy for talking to the worker inspector on the worker thread.
@@ -33,8 +33,8 @@ class CORE_EXPORT WorkerInspectorProxy final
const String&) = 0;
};
- WorkerThreadStartMode WorkerStartMode(Document*);
- void WorkerThreadCreated(Document*, WorkerThread*, const KURL&);
+ WorkerThreadStartMode WorkerStartMode(ExecutionContext*);
+ void WorkerThreadCreated(ExecutionContext*, WorkerThread*, const KURL&);
void WorkerThreadTerminated();
void DispatchMessageFromWorker(const String&);
void AddConsoleMessageFromWorker(MessageLevel,
@@ -47,7 +47,7 @@ class CORE_EXPORT WorkerInspectorProxy final
void WriteTimelineStartedEvent(const String& session_id);
const String& Url() { return url_; }
- Document* GetDocument() { return document_; }
+ ExecutionContext* GetExecutionContext() { return execution_context_; }
const String& InspectorId();
using WorkerInspectorProxySet =
@@ -58,7 +58,7 @@ class CORE_EXPORT WorkerInspectorProxy final
WorkerInspectorProxy();
WorkerThread* worker_thread_;
- Member<Document> document_;
+ Member<ExecutionContext> execution_context_;
PageInspector* page_inspector_;
String url_;
String inspector_id_;

Powered by Google App Engine
This is Rietveld 408576698