diff options
author | Steve Block <steveblock@google.com> | 2010-11-29 17:18:33 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2010-12-01 21:11:00 +0000 |
commit | b84030fc8163cde1f8f055973ef63d3e1670bf52 (patch) | |
tree | c729707e5ba5ed11e581bc49c79e533ad6e96050 /WebKit/android/WebCoreSupport/WebRequest.h | |
parent | c7072d34375726918ff186dd3197d9677c2f98e3 (diff) | |
download | external_webkit-b84030fc8163cde1f8f055973ef63d3e1670bf52.zip external_webkit-b84030fc8163cde1f8f055973ef63d3e1670bf52.tar.gz external_webkit-b84030fc8163cde1f8f055973ef63d3e1670bf52.tar.bz2 |
Use one WebRequestContext per WebView
This change switches from using a pair of WebRequestContexts (one for
private browsing, one for regular browsing) to using one
WebRequestContext per WebView. This is required to allow us to set the
userAgent on each WebView.
The WebRequestContext is now owned by the WebView.
Bug: 3113804
Change-Id: Iba2b1490e7ce4ff65c08a04a310963fa2c7e4f83
Diffstat (limited to 'WebKit/android/WebCoreSupport/WebRequest.h')
-rw-r--r-- | WebKit/android/WebCoreSupport/WebRequest.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/WebKit/android/WebCoreSupport/WebRequest.h b/WebKit/android/WebCoreSupport/WebRequest.h index fb756ab..c78546c 100644 --- a/WebKit/android/WebCoreSupport/WebRequest.h +++ b/WebKit/android/WebCoreSupport/WebRequest.h @@ -27,7 +27,7 @@ #define WebRequest_h #include "ChromiumIncludes.h" -#include "wtf/Vector.h" +#include <wtf/Vector.h> class MessageLoop; @@ -44,8 +44,9 @@ enum LoadState { }; class UrlInterceptResponse; -class WebResourceRequest; class WebFrame; +class WebRequestContext; +class WebResourceRequest; class WebUrlLoaderClient; // All methods in this class must be called on the io thread @@ -65,7 +66,7 @@ public: void appendBytesToUpload(Vector<char>* data); void appendFileToUpload(const std::string& filename); - void start(bool isPrivateBrowsing); + void start(WebRequestContext*); void cancel(); // From URLRequest::Delegate |