Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1878)

Unified Diff: ios/web_view/internal/criwv_browser_state.h

Issue 2679003002: Initialize CRIWVWebView with Configuration object instead of browserState. (Closed)
Patch Set: Rebase. Respond to comments. Fix duplicate unique_ptr. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web_view/internal/criwv.mm ('k') | ios/web_view/internal/criwv_browser_state.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/internal/criwv_browser_state.h
diff --git a/ios/web_view/internal/criwv_browser_state.h b/ios/web_view/internal/criwv_browser_state.h
index 636a200e9726bdcfeb8a2ee4a9e2f53f985457ca..9851667a90a9f88ac8bdf2fc4c9b69146b7b0798 100644
--- a/ios/web_view/internal/criwv_browser_state.h
+++ b/ios/web_view/internal/criwv_browser_state.h
@@ -24,7 +24,7 @@ class CRIWVURLRequestContextGetter;
// CRIWV implementation of BrowserState. Can only be called from the UI thread.
class CRIWVBrowserState : public web::BrowserState {
public:
- CRIWVBrowserState();
+ explicit CRIWVBrowserState(bool off_the_record);
~CRIWVBrowserState() override;
// web::BrowserState implementation.
@@ -45,6 +45,9 @@ class CRIWVBrowserState : public web::BrowserState {
// The path associated with this BrowserState object.
base::FilePath path_;
+ // Whether this BrowserState is incognito.
+ bool off_the_record_;
+
// The request context getter for this BrowserState object.
scoped_refptr<CRIWVURLRequestContextGetter> request_context_getter_;
« no previous file with comments | « ios/web_view/internal/criwv.mm ('k') | ios/web_view/internal/criwv_browser_state.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698