Give user a chance to create custom URLRequestJobFactory.

This commit is contained in:
Cheng Zhao 2014-08-13 15:48:16 +08:00
parent d01aa51686
commit 2d03c983e4
4 changed files with 34 additions and 0 deletions

View file

@ -11,6 +11,10 @@
class PrefRegistrySimple;
class PrefService;
namespace browser_context {
class URLRequestJobFactory;
}
namespace brightray {
class DownloadManagerDelegate;
@ -38,6 +42,12 @@ class BrowserContext : public content::BrowserContext {
// implementation.
virtual scoped_ptr<NetworkDelegate> CreateNetworkDelegate();
// Subclasses should override this to provide a custom URLRequestJobFactory
// implementation.
virtual scoped_ptr<net::URLRequestJobFactory> CreateURLRequestJobFactory(
const content::ProtocolHandlerMap& protocol_handlers,
const content::ProtocolHandlerScopedVector& protocol_interceptors);
virtual base::FilePath GetPath() const OVERRIDE;
private: