Add options to session.fromPartition

This commit is contained in:
Cheng Zhao 2016-07-12 21:53:19 +09:00
parent 00804e5f98
commit e213e09c3e
4 changed files with 19 additions and 9 deletions

View file

@ -19,9 +19,11 @@ class WebViewManager;
class AtomBrowserContext : public brightray::BrowserContext {
public:
// Get or create the BrowserContext according to its |partition| and
// |in_memory|.
// |in_memory|. The |options| will be passed to constructor when there is no
// existing BrowserContext.
static scoped_refptr<AtomBrowserContext> From(
const std::string& partition, bool in_memory);
const std::string& partition, bool in_memory,
const base::DictionaryValue& options = base::DictionaryValue());
void SetUserAgent(const std::string& user_agent);