Enable override user agent in URLRequestContextGetter
This commit is contained in:
parent
032401edf8
commit
8bb0ea438d
2 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,10 @@ const char kProxyPacUrl[] = "proxy-pac-url";
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
std::string URLRequestContextGetter::Delegate::GetUserAgent() {
|
||||||
|
return base::EmptyString();
|
||||||
|
}
|
||||||
|
|
||||||
net::URLRequestJobFactory* URLRequestContextGetter::Delegate::CreateURLRequestJobFactory(
|
net::URLRequestJobFactory* URLRequestContextGetter::Delegate::CreateURLRequestJobFactory(
|
||||||
content::ProtocolHandlerMap* protocol_handlers,
|
content::ProtocolHandlerMap* protocol_handlers,
|
||||||
content::URLRequestInterceptorScopedVector* protocol_interceptors) {
|
content::URLRequestInterceptorScopedVector* protocol_interceptors) {
|
||||||
|
|
|
@ -36,6 +36,7 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
|
||||||
virtual ~Delegate() {}
|
virtual ~Delegate() {}
|
||||||
|
|
||||||
virtual net::NetworkDelegate* CreateNetworkDelegate() { return NULL; }
|
virtual net::NetworkDelegate* CreateNetworkDelegate() { return NULL; }
|
||||||
|
virtual std::string GetUserAgent();
|
||||||
virtual net::URLRequestJobFactory* CreateURLRequestJobFactory(
|
virtual net::URLRequestJobFactory* CreateURLRequestJobFactory(
|
||||||
content::ProtocolHandlerMap* protocol_handlers,
|
content::ProtocolHandlerMap* protocol_handlers,
|
||||||
content::URLRequestInterceptorScopedVector* protocol_interceptors);
|
content::URLRequestInterceptorScopedVector* protocol_interceptors);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue