Add url_request_context_getter getter for BrowserContext.
This commit is contained in:
parent
3f9f778274
commit
b95b621dfc
1 changed files with 6 additions and 1 deletions
|
@ -5,6 +5,8 @@
|
|||
#ifndef BRIGHTRAY_BROWSER_BROWSER_CONTEXT_H_
|
||||
#define BRIGHTRAY_BROWSER_BROWSER_CONTEXT_H_
|
||||
|
||||
#include "browser/url_request_context_getter.h"
|
||||
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "content/public/browser/content_browser_client.h"
|
||||
|
||||
|
@ -19,7 +21,6 @@ namespace brightray {
|
|||
|
||||
class DownloadManagerDelegate;
|
||||
class NetworkDelegate;
|
||||
class URLRequestContextGetter;
|
||||
|
||||
class BrowserContext : public content::BrowserContext {
|
||||
public:
|
||||
|
@ -32,6 +33,10 @@ class BrowserContext : public content::BrowserContext {
|
|||
content::ProtocolHandlerMap* protocol_handlers,
|
||||
content::ProtocolHandlerScopedVector protocol_interceptors);
|
||||
|
||||
net::URLRequestContextGetter* url_request_context_getter() const {
|
||||
return url_request_getter_.get();
|
||||
}
|
||||
|
||||
PrefService* prefs() { return prefs_.get(); }
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Reference in a new issue