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

Unified Diff: third_party/WebKit/Source/web/SuspendableScriptExecutor.h

Issue 2832743003: Move SuspendableScriptExecutor.* from web/ -> core/frame/. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/web/BUILD.gn ('k') | third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/SuspendableScriptExecutor.h
diff --git a/third_party/WebKit/Source/web/SuspendableScriptExecutor.h b/third_party/WebKit/Source/web/SuspendableScriptExecutor.h
deleted file mode 100644
index cc7b0e35247c31208df7eaf43509bae27296276a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/web/SuspendableScriptExecutor.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SuspendableScriptExecutor_h
-#define SuspendableScriptExecutor_h
-
-#include "bindings/core/v8/DOMWrapperWorld.h"
-#include "core/frame/SuspendableTimer.h"
-#include "platform/heap/Handle.h"
-#include "platform/heap/SelfKeepAlive.h"
-#include "platform/wtf/RefPtr.h"
-#include "platform/wtf/Vector.h"
-#include "v8/include/v8.h"
-
-namespace blink {
-
-class LocalFrame;
-class ScriptSourceCode;
-class ScriptState;
-class WebScriptExecutionCallback;
-
-class SuspendableScriptExecutor final
- : public GarbageCollectedFinalized<SuspendableScriptExecutor>,
- public SuspendableTimer {
- USING_GARBAGE_COLLECTED_MIXIN(SuspendableScriptExecutor);
-
- public:
- enum BlockingOption { kNonBlocking, kOnloadBlocking };
-
- static SuspendableScriptExecutor* Create(
- LocalFrame*,
- RefPtr<DOMWrapperWorld>,
- const HeapVector<ScriptSourceCode>& sources,
- bool user_gesture,
- WebScriptExecutionCallback*);
- static void CreateAndRun(LocalFrame*,
- v8::Isolate*,
- v8::Local<v8::Context>,
- v8::Local<v8::Function>,
- v8::Local<v8::Value> receiver,
- int argc,
- v8::Local<v8::Value> argv[],
- WebScriptExecutionCallback*);
- ~SuspendableScriptExecutor() override;
-
- void Run();
- void RunAsync(BlockingOption);
- void ContextDestroyed(ExecutionContext*) override;
-
- DECLARE_VIRTUAL_TRACE();
-
- class Executor : public GarbageCollectedFinalized<Executor> {
- public:
- virtual ~Executor() {}
-
- virtual Vector<v8::Local<v8::Value>> Execute(LocalFrame*) = 0;
-
- DEFINE_INLINE_VIRTUAL_TRACE(){};
- };
-
- private:
- SuspendableScriptExecutor(LocalFrame*,
- ScriptState*,
- WebScriptExecutionCallback*,
- Executor*);
-
- void Fired() override;
-
- void ExecuteAndDestroySelf();
- void Dispose();
-
- RefPtr<ScriptState> script_state_;
- WebScriptExecutionCallback* callback_;
- BlockingOption blocking_option_;
-
- SelfKeepAlive<SuspendableScriptExecutor> keep_alive_;
-
- Member<Executor> executor_;
-};
-
-} // namespace blink
-
-#endif // SuspendableScriptExecutor_h
« no previous file with comments | « third_party/WebKit/Source/web/BUILD.gn ('k') | third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698