register cookieable schemes with browser context

This commit is contained in:
deepak1556 2016-08-04 12:15:45 +05:30
parent 52431506ba
commit 2aa1c9e556
3 changed files with 24 additions and 3 deletions

View file

@ -6,6 +6,7 @@
#define ATOM_BROWSER_ATOM_BROWSER_CONTEXT_H_
#include <string>
#include <vector>
#include "brightray/browser/browser_context.h"
@ -26,6 +27,7 @@ class AtomBrowserContext : public brightray::BrowserContext {
const base::DictionaryValue& options = base::DictionaryValue());
void SetUserAgent(const std::string& user_agent);
void SetCookieableSchemes(const std::vector<std::string>& schemes);
// brightray::URLRequestContextGetter::Delegate:
net::NetworkDelegate* CreateNetworkDelegate() override;
@ -36,6 +38,7 @@ class AtomBrowserContext : public brightray::BrowserContext {
const base::FilePath& base_path) override;
std::unique_ptr<net::CertVerifier> CreateCertVerifier() override;
net::SSLConfigService* CreateSSLConfigService() override;
std::vector<std::string> GetCookieableSchemes() override;
// content::BrowserContext:
content::DownloadManagerDelegate* GetDownloadManagerDelegate() override;
@ -56,6 +59,7 @@ class AtomBrowserContext : public brightray::BrowserContext {
std::unique_ptr<AtomDownloadManagerDelegate> download_manager_delegate_;
std::unique_ptr<WebViewManager> guest_manager_;
std::unique_ptr<AtomPermissionManager> permission_manager_;
std::vector<std::string> cookieable_schemes_;
std::string user_agent_;
bool use_cache_;