summaryrefslogtreecommitdiffstats
path: root/ios/web
diff options
context:
space:
mode:
authorsdefresne <sdefresne@chromium.org>2014-11-21 01:55:15 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-21 09:55:29 +0000
commitd537d6c355be1a51bbb808e9da214f5595d75f3d (patch)
treed794fe138ee2fb6394d815356441776e2428cfc5 /ios/web
parentf4455485213d6000fd11773664478bd301ba3dd3 (diff)
downloadchromium_src-d537d6c355be1a51bbb808e9da214f5595d75f3d.zip
chromium_src-d537d6c355be1a51bbb808e9da214f5595d75f3d.tar.gz
chromium_src-d537d6c355be1a51bbb808e9da214f5595d75f3d.tar.bz2
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}
Diffstat (limited to 'ios/web')
-rw-r--r--ios/web/public/browser_state.h7
1 files changed, 7 insertions, 0 deletions
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;