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

Unified Diff: webkit/glue/webkitplatformsupport_impl.h

Issue 8228025: Implement WebKitPlatformSupport::currentThread (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: git try Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/webkitplatformsupport_impl.cc » ('j') | webkit/glue/webthread_impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webkitplatformsupport_impl.h
diff --git a/webkit/glue/webkitplatformsupport_impl.h b/webkit/glue/webkitplatformsupport_impl.h
index c4290879b6f25bfeda20dfecc7685c686db03937..16f8020943cd884f06b4a5e7abbfa42928f5c21b 100644
--- a/webkit/glue/webkitplatformsupport_impl.h
+++ b/webkit/glue/webkitplatformsupport_impl.h
@@ -6,6 +6,7 @@
#define WEBKIT_PLATFORM_SUPPORT_IMPL_H_
#include "base/platform_file.h"
+#include "base/threading/thread_local_storage.h"
#include "base/timer.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebKitPlatformSupport.h"
#if defined(OS_WIN)
@@ -78,6 +79,7 @@ class WebKitPlatformSupportImpl : public WebKit::WebKitPlatformSupport {
virtual void stopSharedTimer();
virtual void callOnMainThread(void (*func)(void*), void* context);
virtual WebKit::WebThread* createThread(const char* name);
+ virtual WebKit::WebThread* currentThread();
void SuspendSharedTimer();
void ResumeSharedTimer();
@@ -87,6 +89,7 @@ class WebKitPlatformSupportImpl : public WebKit::WebKitPlatformSupport {
if (shared_timer_func_ && !shared_timer_suspended_)
shared_timer_func_();
}
+ static void DestroyCurrentThread(void*);
MessageLoop* main_loop_;
base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_;
@@ -94,6 +97,7 @@ class WebKitPlatformSupportImpl : public WebKit::WebKitPlatformSupport {
double shared_timer_fire_time_;
int shared_timer_suspended_; // counter
WebThemeEngineImpl theme_engine_;
+ base::ThreadLocalStorage::Slot current_thread_slot_;
};
} // namespace webkit_glue
« no previous file with comments | « no previous file | webkit/glue/webkitplatformsupport_impl.cc » ('j') | webkit/glue/webthread_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698