Pass parameter by pointers when creating job factory.
1. The caller needs to modify protocol_handlers. 2. We need to make sure protocol_handlers and interceptors are not touched if user doesn't create a job factory.
This commit is contained in:
parent
604361f93d
commit
da3bafd490
4 changed files with 7 additions and 9 deletions
|
@ -50,8 +50,8 @@ class BrowserContext : public content::BrowserContext {
|
|||
// Subclasses should override this to provide a custom URLRequestJobFactory
|
||||
// implementation.
|
||||
virtual scoped_ptr<net::URLRequestJobFactory> CreateURLRequestJobFactory(
|
||||
const content::ProtocolHandlerMap& protocol_handlers,
|
||||
content::ProtocolHandlerScopedVector protocol_interceptors);
|
||||
content::ProtocolHandlerMap* protocol_handlers,
|
||||
content::ProtocolHandlerScopedVector* protocol_interceptors);
|
||||
|
||||
virtual base::FilePath GetPath() const OVERRIDE;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue