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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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 "platform/heap/SelfKeepAlive.h" 10 #include "platform/heap/SelfKeepAlive.h"
(...skipping 21 matching lines...) Expand all
32 static void createAndRun(LocalFrame*, 32 static void createAndRun(LocalFrame*,
33 v8::Isolate*, 33 v8::Isolate*,
34 v8::Local<v8::Context>, 34 v8::Local<v8::Context>,
35 v8::Local<v8::Function>, 35 v8::Local<v8::Function>,
36 v8::Local<v8::Value> receiver, 36 v8::Local<v8::Value> receiver,
37 int argc, 37 int argc,
38 v8::Local<v8::Value> argv[], 38 v8::Local<v8::Value> argv[],
39 WebScriptExecutionCallback*); 39 WebScriptExecutionCallback*);
40 ~SuspendableScriptExecutor() override; 40 ~SuspendableScriptExecutor() override;
41 41
42 void contextDestroyed() override; 42 void contextDestroyed(ExecutionContext*) override;
43 43
44 DECLARE_VIRTUAL_TRACE(); 44 DECLARE_VIRTUAL_TRACE();
45 45
46 class Executor : public GarbageCollectedFinalized<Executor> { 46 class Executor : public GarbageCollectedFinalized<Executor> {
47 public: 47 public:
48 virtual ~Executor() {} 48 virtual ~Executor() {}
49 49
50 virtual Vector<v8::Local<v8::Value>> execute(LocalFrame*) = 0; 50 virtual Vector<v8::Local<v8::Value>> execute(LocalFrame*) = 0;
51 51
52 DEFINE_INLINE_VIRTUAL_TRACE(){}; 52 DEFINE_INLINE_VIRTUAL_TRACE(){};
(...skipping 15 matching lines...) Expand all
68 WebScriptExecutionCallback* m_callback; 68 WebScriptExecutionCallback* m_callback;
69 69
70 SelfKeepAlive<SuspendableScriptExecutor> m_keepAlive; 70 SelfKeepAlive<SuspendableScriptExecutor> m_keepAlive;
71 71
72 Member<Executor> m_executor; 72 Member<Executor> m_executor;
73 }; 73 };
74 74
75 } // namespace blink 75 } // namespace blink
76 76
77 #endif // SuspendableScriptExecutor_h 77 #endif // SuspendableScriptExecutor_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/LifecycleObserver.h ('k') | third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698