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

Side by Side Diff: third_party/WebKit/Source/core/frame/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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SuspendableScriptExecutor_h 5 #ifndef SuspendableScriptExecutor_h
6 #define SuspendableScriptExecutor_h 6 #define SuspendableScriptExecutor_h
7 7
8 #include "bindings/core/v8/DOMWrapperWorld.h" 8 #include "bindings/core/v8/DOMWrapperWorld.h"
9 #include "core/CoreExport.h"
9 #include "core/frame/SuspendableTimer.h" 10 #include "core/frame/SuspendableTimer.h"
10 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
11 #include "platform/heap/SelfKeepAlive.h" 12 #include "platform/heap/SelfKeepAlive.h"
12 #include "platform/wtf/RefPtr.h" 13 #include "platform/wtf/RefPtr.h"
13 #include "platform/wtf/Vector.h" 14 #include "platform/wtf/Vector.h"
14 #include "v8/include/v8.h" 15 #include "v8/include/v8.h"
15 16
16 namespace blink { 17 namespace blink {
17 18
18 class LocalFrame; 19 class LocalFrame;
19 class ScriptSourceCode; 20 class ScriptSourceCode;
20 class ScriptState; 21 class ScriptState;
21 class WebScriptExecutionCallback; 22 class WebScriptExecutionCallback;
22 23
23 class SuspendableScriptExecutor final 24 class CORE_EXPORT SuspendableScriptExecutor final
24 : public GarbageCollectedFinalized<SuspendableScriptExecutor>, 25 : public GarbageCollectedFinalized<SuspendableScriptExecutor>,
25 public SuspendableTimer { 26 public SuspendableTimer {
26 USING_GARBAGE_COLLECTED_MIXIN(SuspendableScriptExecutor); 27 USING_GARBAGE_COLLECTED_MIXIN(SuspendableScriptExecutor);
27 28
28 public: 29 public:
29 enum BlockingOption { kNonBlocking, kOnloadBlocking }; 30 enum BlockingOption { kNonBlocking, kOnloadBlocking };
30 31
31 static SuspendableScriptExecutor* Create( 32 static SuspendableScriptExecutor* Create(
32 LocalFrame*, 33 LocalFrame*,
33 RefPtr<DOMWrapperWorld>, 34 RefPtr<DOMWrapperWorld>,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 BlockingOption blocking_option_; 76 BlockingOption blocking_option_;
76 77
77 SelfKeepAlive<SuspendableScriptExecutor> keep_alive_; 78 SelfKeepAlive<SuspendableScriptExecutor> keep_alive_;
78 79
79 Member<Executor> executor_; 80 Member<Executor> executor_;
80 }; 81 };
81 82
82 } // namespace blink 83 } // namespace blink
83 84
84 #endif // SuspendableScriptExecutor_h 85 #endif // SuspendableScriptExecutor_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/BUILD.gn ('k') | third_party/WebKit/Source/core/frame/SuspendableScriptExecutor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698