Give user a chance to create custom URLRequestJobFactory.
This commit is contained in:
parent
d01aa51686
commit
2d03c983e4
4 changed files with 34 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue