mirror of
https://github.com/electron/electron.git
synced 2026-02-05 12:45:06 -05:00
Add url_request_context_getter getter for BrowserContext.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user