Allow clients to supply their own NetworkDelegate implementation

This commit is contained in:
Adam Roben 2013-07-17 10:21:33 -04:00
parent 09efd19d2f
commit 33b574b434
5 changed files with 20 additions and 6 deletions

View file

@ -13,6 +13,7 @@ class PrefService;
namespace brightray {
class NetworkDelegate;
class URLRequestContextGetter;
class BrowserContext : public content::BrowserContext {
@ -28,6 +29,9 @@ protected:
// Subclasses should override this to register custom preferences.
virtual void RegisterPrefs(PrefRegistrySimple*) {}
// Subclasses should override this to provide a custom NetworkDelegate implementation.
virtual scoped_ptr<NetworkDelegate> CreateNetworkDelegate();
virtual base::FilePath GetPath() OVERRIDE;
private: