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

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h

Issue 2847703002: Make ExecutionContext aware about how it can return CoreProbeSink (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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool IsContextThread() const final; 128 bool IsContextThread() const final;
129 void DisableEval(const String& error_message) final; 129 void DisableEval(const String& error_message) final;
130 String UserAgent() const final { return user_agent_; } 130 String UserAgent() const final { return user_agent_; }
131 131
132 DOMTimerCoordinator* Timers() final { return &timers_; } 132 DOMTimerCoordinator* Timers() final { return &timers_; }
133 SecurityContext& GetSecurityContext() final { return *this; } 133 SecurityContext& GetSecurityContext() final { return *this; }
134 void AddConsoleMessage(ConsoleMessage*) final; 134 void AddConsoleMessage(ConsoleMessage*) final;
135 WorkerEventQueue* GetEventQueue() const final; 135 WorkerEventQueue* GetEventQueue() const final;
136 bool IsSecureContext(String& error_message) const override; 136 bool IsSecureContext(String& error_message) const override;
137 137
138 CoreProbeSink* GetProbeSink() final;
139
138 // EventTarget 140 // EventTarget
139 ExecutionContext* GetExecutionContext() const final; 141 ExecutionContext* GetExecutionContext() const final;
140 142
141 // WorkerOrWorkletGlobalScope 143 // WorkerOrWorkletGlobalScope
142 ScriptWrappable* GetScriptWrappable() const final { 144 ScriptWrappable* GetScriptWrappable() const final {
143 return const_cast<WorkerGlobalScope*>(this); 145 return const_cast<WorkerGlobalScope*>(this);
144 } 146 }
145 147
146 double TimeOrigin() const { return time_origin_; } 148 double TimeOrigin() const { return time_origin_; }
147 WorkerSettings* GetWorkerSettings() const { return worker_settings_.get(); } 149 WorkerSettings* GetWorkerSettings() const { return worker_settings_.get(); }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 218
217 DEFINE_TYPE_CASTS(WorkerGlobalScope, 219 DEFINE_TYPE_CASTS(WorkerGlobalScope,
218 ExecutionContext, 220 ExecutionContext,
219 context, 221 context,
220 context->IsWorkerGlobalScope(), 222 context->IsWorkerGlobalScope(),
221 context.IsWorkerGlobalScope()); 223 context.IsWorkerGlobalScope());
222 224
223 } // namespace blink 225 } // namespace blink
224 226
225 #endif // WorkerGlobalScope_h 227 #endif // WorkerGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698