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

Unified Diff: gin/public/v8_platform.h

Issue 988483002: Use a joinable background thread instead of worker pool in gin (Closed) Base URL: git@github.com:domokit/mojo.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gin/v8_platform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/public/v8_platform.h
diff --git a/gin/public/v8_platform.h b/gin/public/v8_platform.h
index a4fc28a9bc32cf394af4027cddfc116a85219fd1..d1ed077f5c277e5dceba2f61c2a7bd1b01e2e8b3 100644
--- a/gin/public/v8_platform.h
+++ b/gin/public/v8_platform.h
@@ -8,9 +8,14 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/lazy_instance.h"
+#include "base/memory/scoped_ptr.h"
#include "gin/gin_export.h"
#include "v8/include/v8-platform.h"
+namespace base {
+class Thread;
+}
+
namespace gin {
// A v8::Platform implementation to use with gin.
@@ -30,6 +35,7 @@ class GIN_EXPORT V8Platform : public NON_EXPORTED_BASE(v8::Platform) {
V8Platform();
~V8Platform() override;
+ scoped_ptr<base::Thread> background_thread_;
DISALLOW_COPY_AND_ASSIGN(V8Platform);
};
« no previous file with comments | « no previous file | gin/v8_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698