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

Side by Side Diff: Source/core/workers/WorkerV8Isolate.h

Issue 1158443008: compositor-worker: Share a thread and an isolate for compositor workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2015 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 WorkerV8Isolate_h
6 #define WorkerV8Isolate_h
7
8 #include "core/CoreExport.h"
9 #include "wtf/OwnPtr.h"
10 #include "wtf/PassOwnPtr.h"
11 #include <v8.h>
12
13 namespace blink {
14
15 // A common interface for a worker to manage the v8::Isolate used for the worker .
kinuko 2015/05/31 15:18:24 Please also note about its lifetime (when it's cre
sadrul 2015/06/01 05:24:11 Done.
16 class CORE_EXPORT WorkerV8Isolate {
17 public:
18 static PassOwnPtr<WorkerV8Isolate> createDefault();
19 virtual ~WorkerV8Isolate() { }
20
21 virtual v8::Isolate* isolate() const = 0;
22 virtual void willDestroy() = 0;
23 virtual void terminateExecution() = 0;
24
25 protected:
26 WorkerV8Isolate() { }
27 };
28
29 } // namespace blink
30
31 #endif // WorkerV8Isolate_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698