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

Side by Side Diff: third_party/WebKit/Source/web/SuspendableScriptExecutor.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "core/frame/SuspendableTimer.h" 8 #include "core/frame/SuspendableTimer.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "wtf/Vector.h" 10 #include "wtf/Vector.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class LocalFrame; 14 class LocalFrame;
15 class ScriptSourceCode; 15 class ScriptSourceCode;
16 class WebScriptExecutionCallback; 16 class WebScriptExecutionCallback;
17 17
18 class SuspendableScriptExecutor final : public GarbageCollectedFinalized<Suspend ableScriptExecutor>, public SuspendableTimer { 18 class SuspendableScriptExecutor final : public GarbageCollectedFinalized<Suspend ableScriptExecutor>, public SuspendableTimer {
19 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SuspendableScriptExecutor); 19 USING_GARBAGE_COLLECTED_MIXIN(SuspendableScriptExecutor);
20 public: 20 public:
21 static void createAndRun(LocalFrame*, int worldID, const WillBeHeapVector<Sc riptSourceCode>& sources, int extensionGroup, bool userGesture, WebScriptExecuti onCallback*); 21 static void createAndRun(LocalFrame*, int worldID, const HeapVector<ScriptSo urceCode>& sources, int extensionGroup, bool userGesture, WebScriptExecutionCall back*);
22 ~SuspendableScriptExecutor() override; 22 ~SuspendableScriptExecutor() override;
23 23
24 void contextDestroyed() override; 24 void contextDestroyed() override;
25 25
26 DECLARE_VIRTUAL_TRACE(); 26 DECLARE_VIRTUAL_TRACE();
27 27
28 private: 28 private:
29 SuspendableScriptExecutor(LocalFrame*, int worldID, const WillBeHeapVector<S criptSourceCode>& sources, int extensionGroup, bool userGesture, WebScriptExecut ionCallback*); 29 SuspendableScriptExecutor(LocalFrame*, int worldID, const HeapVector<ScriptS ourceCode>& sources, int extensionGroup, bool userGesture, WebScriptExecutionCal lback*);
30 30
31 void fired() override; 31 void fired() override;
32 32
33 void run(); 33 void run();
34 void executeAndDestroySelf(); 34 void executeAndDestroySelf();
35 void dispose(); 35 void dispose();
36 36
37 RefPtrWillBeMember<LocalFrame> m_frame; 37 Member<LocalFrame> m_frame;
38 WillBeHeapVector<ScriptSourceCode> m_sources; 38 HeapVector<ScriptSourceCode> m_sources;
39 WebScriptExecutionCallback* m_callback; 39 WebScriptExecutionCallback* m_callback;
40 40
41 SelfKeepAlive<SuspendableScriptExecutor> m_keepAlive; 41 SelfKeepAlive<SuspendableScriptExecutor> m_keepAlive;
42 42
43 int m_worldID; 43 int m_worldID;
44 int m_extensionGroup; 44 int m_extensionGroup;
45 45
46 bool m_userGesture; 46 bool m_userGesture;
47 }; 47 };
48 48
49 } // namespace blink 49 } // namespace blink
50 50
51 #endif // SuspendableScriptExecutor_h 51 #endif // SuspendableScriptExecutor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698