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

Unified Diff: webkit/glue/weburlrequest_extradata_impl.h

Issue 10780019: PPAPI (Flash): Properly honor Pepper url requests with custom user agents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: got rid of unneeded WebKit:: Created 8 years, 5 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 | « content/renderer/render_view_impl.cc ('k') | webkit/glue/weburlrequest_extradata_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/weburlrequest_extradata_impl.h
diff --git a/webkit/glue/weburlrequest_extradata_impl.h b/webkit/glue/weburlrequest_extradata_impl.h
index f49199af258b82919d2d67e77c1c907b4fd0d6ba..d4b2c194b6c14d3448ddbb79cb69f82ffcf43324 100644
--- a/webkit/glue/weburlrequest_extradata_impl.h
+++ b/webkit/glue/weburlrequest_extradata_impl.h
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRequest.h"
#include "webkit/glue/webkit_glue_export.h"
@@ -17,14 +18,24 @@ namespace webkit_glue {
class WEBKIT_GLUE_EXPORT WebURLRequestExtraDataImpl :
NON_EXPORTED_BASE(public WebKit::WebURLRequest::ExtraData) {
public:
+ // |custom_user_agent| is used to communicate an overriding custom user agent
+ // to |RenderViewImpl::willSendRequest()|; set to a null string to indicate no
+ // override and an empty string to indicate that there should be no user
+ // agent. This needs to be here, instead of content's |RequestExtraData| since
+ // ppb_url_request_info_impl.cc needs to be able to set it.
explicit WebURLRequestExtraDataImpl(
- WebKit::WebReferrerPolicy referrer_policy);
+ WebKit::WebReferrerPolicy referrer_policy,
+ const WebKit::WebString& custom_user_agent);
virtual ~WebURLRequestExtraDataImpl();
WebKit::WebReferrerPolicy referrer_policy() const { return referrer_policy_; }
+ const WebKit::WebString& custom_user_agent() const {
+ return custom_user_agent_;
+ }
private:
WebKit::WebReferrerPolicy referrer_policy_;
+ WebKit::WebString custom_user_agent_;
DISALLOW_COPY_AND_ASSIGN(WebURLRequestExtraDataImpl);
};
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | webkit/glue/weburlrequest_extradata_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698