From 9a90c4fd9e9ad727fac52b12013ad2b88644d826 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 27 Oct 2010 09:58:13 +0100 Subject: Fix WebRequestContext::get() to be threadsafe This allows the method to be called from both the WebCore thread and the UI thread, as required to hook up CookieManager. Change-Id: I895d14909b14f0baba77fb2cb75926d9103ee01f --- WebKit/android/WebCoreSupport/WebRequestContext.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'WebKit/android/WebCoreSupport/WebRequestContext.h') diff --git a/WebKit/android/WebCoreSupport/WebRequestContext.h b/WebKit/android/WebCoreSupport/WebRequestContext.h index 3f5631f..788998e 100644 --- a/WebKit/android/WebCoreSupport/WebRequestContext.h +++ b/WebKit/android/WebCoreSupport/WebRequestContext.h @@ -38,6 +38,9 @@ public: virtual const std::string& GetAcceptLanguage() const; // Lazily create the relevant context. This class holds a reference. + // This may be called on any thread. The context returned, however, is not + // threadsafe, and should only be used on a single thread (the network stack + // IO thread), with the exception of the methods below. static WebRequestContext* get(bool isPrivateBrowsing); // These methods are threadsafe. -- cgit v1.1