From d537d6c355be1a51bbb808e9da214f5595d75f3d Mon Sep 17 00:00:00 2001 From: sdefresne Date: Fri, 21 Nov 2014 01:55:15 -0800 Subject: Expand web::BrowserState to add GetPath() method Add a method to web::BrowserState returning the path where the BrowserState data is stored. BUG=429756 Review URL: https://codereview.chromium.org/740353002 Cr-Commit-Position: refs/heads/master@{#305191} --- ios/web/public/browser_state.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ios/web') diff --git a/ios/web/public/browser_state.h b/ios/web/public/browser_state.h index 47c398c..67e4192 100644 --- a/ios/web/public/browser_state.h +++ b/ios/web/public/browser_state.h @@ -7,6 +7,10 @@ #include "base/supports_user_data.h" +namespace base { +class FilePath; +} + namespace net { class URLRequestContextGetter; } @@ -23,6 +27,9 @@ class BrowserState : public base::SupportsUserData { // Return whether this BrowserState is incognito. Default is false. virtual bool IsOffTheRecord() const = 0; + // Retrieves the path where the BrowserState data is stored. + virtual base::FilePath GetPath() const = 0; + // Returns the request context information associated with this // BrowserState. virtual net::URLRequestContextGetter* GetRequestContext() = 0; -- cgit v1.1