From b95b621dfcb38ccd8c85c989f645a9d2ec5acd23 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 13 Aug 2014 16:09:32 +0800 Subject: [PATCH] Add url_request_context_getter getter for BrowserContext. --- brightray/browser/browser_context.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/brightray/browser/browser_context.h b/brightray/browser/browser_context.h index 1caa216a7a..328ca72cf1 100644 --- a/brightray/browser/browser_context.h +++ b/brightray/browser/browser_context.h @@ -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: