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

Side by Side Diff: Source/bindings/core/v8/ScheduledActionWithCallback.h

Issue 660863002: [DevTools] Added public method for async execution of scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: platform/WebExecuteScriptCallback -> web/WebScriptCallback Created 6 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ScheduledActionWithCallback_h
6 #define ScheduledActionWithCallback_h
7
8 #include "bindings/core/v8/ScheduledActionBase.h"
9 #include "bindings/core/v8/ScriptSourceCode.h"
10 #include "wtf/Forward.h"
11 #include <v8.h>
12
13 namespace blink {
14
15 class LocalFrame;
16 class WebScriptCallback;
17
18 class ScheduledActionWithCallback : public ScheduledActionBase {
19 WTF_MAKE_NONCOPYABLE(ScheduledActionWithCallback);
20 public:
21 // if worldID = 0 only sources.front() will be executed in main world
22 ScheduledActionWithCallback(int worldID, const Vector<ScriptSourceCode>& sou rces, int extensionGroup, WebScriptCallback*);
23 virtual ~ScheduledActionWithCallback();
24
25 private:
26 void execute(LocalFrame*);
27
28 int m_worldID;
29 Vector<ScriptSourceCode> m_sources;
30 int m_extensionGroup;
31 WebScriptCallback* m_callback;
32 };
33
34 } // namespace blink
35
36 #endif // ScheduledActionWithCallback_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698