diff options
-rw-r--r-- | Android.mk | 2 | ||||
-rw-r--r-- | WebKit/android/WebCoreSupport/WebRequestContext.h | 7 |
2 files changed, 9 insertions, 0 deletions
@@ -79,10 +79,12 @@ ifneq ($(JAVASCRIPT_ENGINE),jsc) endif # Read the HTTP_STACK environment variable, default is android +ifeq ($(TARGET_SIMULATOR),false) HTTP_STACK = $(HTTP) ifneq ($(HTTP_STACK),chrome) HTTP_STACK = android endif +endif BASE_PATH := $(call my-dir) include $(CLEAR_VARS) diff --git a/WebKit/android/WebCoreSupport/WebRequestContext.h b/WebKit/android/WebCoreSupport/WebRequestContext.h index c2f0aaf..0ff081c 100644 --- a/WebKit/android/WebCoreSupport/WebRequestContext.h +++ b/WebKit/android/WebCoreSupport/WebRequestContext.h @@ -26,6 +26,11 @@ #ifndef WebRequestContext_h #define WebRequestContext_h +// libchromium_net is not available on the simulator for now +// Cannot forward declare the chrome classes since this is +// a subclass of a chrome class. +#if USE(CHROME_NETWORK_STACK) + #include "net/http/http_cache.h" #include "net/url_request/url_request_context.h" @@ -46,4 +51,6 @@ private: } // namespace android +#endif // USE(CHROME_NETWORK_STACK) + #endif |