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

Unified Diff: ios/web_view/internal/criwv_web_main_parts.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_web_client.mm ('k') | ios/web_view/internal/criwv_web_main_parts.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/internal/criwv_web_main_parts.h
diff --git a/ios/web_view/internal/criwv_web_main_parts.h b/ios/web_view/internal/criwv_web_main_parts.h
index 67f946b0330dbee7a880b8e9cda46248db8c2fd6..dc4871cadaaeb71999fb88f27c0c66ef7a41ebd6 100644
--- a/ios/web_view/internal/criwv_web_main_parts.h
+++ b/ios/web_view/internal/criwv_web_main_parts.h
@@ -26,12 +26,20 @@ class CRIWVWebMainParts : public web::WebMainParts {
// Returns the CRIWVBrowserState for this embedder.
CRIWVBrowserState* browser_state() const { return browser_state_.get(); }
+ // Returns the off the record CRIWVBrowserState for this embedder.
+ CRIWVBrowserState* off_the_record_browser_state() const {
+ return off_the_record_browser_state_.get();
+ }
+
private:
// This object's delegate.
id<CRIWVDelegate> delegate_;
// The BrowserState for this embedder.
std::unique_ptr<CRIWVBrowserState> browser_state_;
+
+ // The BrowserState for this embedder.
+ std::unique_ptr<CRIWVBrowserState> off_the_record_browser_state_;
};
} // namespace ios_web_view
« no previous file with comments | « ios/web_view/internal/criwv_web_client.mm ('k') | ios/web_view/internal/criwv_web_main_parts.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698