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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp

Issue 2254593002: [worklets] Introduce AnimationWorkletGlobalScope and ThreadedWorkletGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add super call to WorkletGlobalScope::dispose() Created 4 years, 4 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/modules/compositorworker/AnimationWorkletGlobalScope.cpp
diff --git a/headless/test/test_protocol_handler.cc b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp
similarity index 25%
copy from headless/test/test_protocol_handler.cc
copy to third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp
index 4752f91b3417e6c075d3227f3f11ab2798b8cb37..19c7218a9c97b473815ae966767addc07d2cd1ec 100644
--- a/headless/test/test_protocol_handler.cc
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp
@@ -2,19 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "headless/test/test_protocol_handler.h"
+#include "modules/compositorworker/AnimationWorkletGlobalScope.h"
-#include "headless/test/test_url_request_job.h"
+#include "platform/weborigin/SecurityOrigin.h"
-namespace headless {
+namespace blink {
-TestProtocolHandler::TestProtocolHandler(const std::string& body)
- : body_(body) {}
+AnimationWorkletGlobalScope* AnimationWorkletGlobalScope::create(const KURL& url, const String& userAgent, PassRefPtr<SecurityOrigin> securityOrigin, v8::Isolate* isolate, WorkerThread* thread)
+{
+ return new AnimationWorkletGlobalScope(url, userAgent, securityOrigin, isolate, thread);
+}
+
+AnimationWorkletGlobalScope::AnimationWorkletGlobalScope(const KURL& url, const String& userAgent, PassRefPtr<SecurityOrigin> securityOrigin, v8::Isolate* isolate, WorkerThread* thread)
+ : ThreadedWorkletGlobalScope(url, userAgent, securityOrigin, isolate, thread)
+{
+}
-net::URLRequestJob* TestProtocolHandler::MaybeCreateJob(
- net::URLRequest* request,
- net::NetworkDelegate* network_delegate) const {
- return new TestURLRequestJob(request, network_delegate, body_);
+AnimationWorkletGlobalScope::~AnimationWorkletGlobalScope()
+{
}
-} // namespace headless
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698