summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/WebRequestContext.h
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-11-29 14:09:58 +0000
committerSteve Block <steveblock@google.com>2010-11-29 14:23:42 +0000
commit63ebc0f62b5ab9255998d79dfa25ed607118938f (patch)
tree45dd89806e06dc2bf6d6086c918fed0cf394939a /WebKit/android/WebCoreSupport/WebRequestContext.h
parentcaa9d607432daead615c81c023a59d02643dae42 (diff)
downloadexternal_webkit-63ebc0f62b5ab9255998d79dfa25ed607118938f.zip
external_webkit-63ebc0f62b5ab9255998d79dfa25ed607118938f.tar.gz
external_webkit-63ebc0f62b5ab9255998d79dfa25ed607118938f.tar.bz2
Add a static WebRequestContext::acceptLanguage() method
This removes the need for PlatformBridge::computeDefaultLanguage() to get an instance of WebRequestContext. This is part of the refactoring to use a WebRequestContext per WebView. Bug: 3113804 Change-Id: Ib304a8457a82d09d80fe4d6298f00f688ec53b7c
Diffstat (limited to 'WebKit/android/WebCoreSupport/WebRequestContext.h')
-rw-r--r--WebKit/android/WebCoreSupport/WebRequestContext.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebKit/android/WebCoreSupport/WebRequestContext.h b/WebKit/android/WebCoreSupport/WebRequestContext.h
index f0f4074..ec1561b 100644
--- a/WebKit/android/WebCoreSupport/WebRequestContext.h
+++ b/WebKit/android/WebCoreSupport/WebRequestContext.h
@@ -47,7 +47,8 @@ public:
// These methods are threadsafe.
static bool cleanupPrivateBrowsingFiles();
static void setUserAgent(WTF::String);
- static void setAcceptLanguage(WTF::String);
+ static void setAcceptLanguage(const WTF::String&);
+ static const WTF::String& acceptLanguage();
// A helper function used by the cache and cookie managers. Should probably
// find a better home, but wait for the refactoring in b/3113804 to be