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 |