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

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

Issue 869513004: SuspendableScriptExecutor executes code once (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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/dom/ActiveDOMObject.h" 8 #include "core/dom/ActiveDOMObject.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "wtf/OwnPtr.h" 10 #include "wtf/OwnPtr.h"
(...skipping 20 matching lines...) Expand all
31 SuspendableScriptExecutor(LocalFrame*, int worldID, const WillBeHeapVector<S criptSourceCode>& sources, int extensionGroup, bool userGesture, WebScriptExecut ionCallback*); 31 SuspendableScriptExecutor(LocalFrame*, int worldID, const WillBeHeapVector<S criptSourceCode>& sources, int extensionGroup, bool userGesture, WebScriptExecut ionCallback*);
32 32
33 void run(); 33 void run();
34 void executeAndDestroySelf(); 34 void executeAndDestroySelf();
35 35
36 RawPtrWillBeMember<LocalFrame> m_frame; 36 RawPtrWillBeMember<LocalFrame> m_frame;
37 int m_worldID; 37 int m_worldID;
38 WillBeHeapVector<ScriptSourceCode> m_sources; 38 WillBeHeapVector<ScriptSourceCode> m_sources;
39 int m_extensionGroup; 39 int m_extensionGroup;
40 bool m_userGesture; 40 bool m_userGesture;
41 bool m_isStarted;
41 WebScriptExecutionCallback* m_callback; 42 WebScriptExecutionCallback* m_callback;
42 }; 43 };
43 44
44 } // namespace blink 45 } // namespace blink
45 46
46 #endif // SuspendableScriptExecutor_h 47 #endif // SuspendableScriptExecutor_h
OLDNEW
« no previous file with comments | « no previous file | Source/web/SuspendableScriptExecutor.cpp » ('j') | Source/web/SuspendableScriptExecutor.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698