| OLD | NEW | 
| (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 | 
| OLD | NEW |