diff options
Diffstat (limited to 'content/browser/browsing_instance.h')
-rw-r--r-- | content/browser/browsing_instance.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/content/browser/browsing_instance.h b/content/browser/browsing_instance.h index b550659..31a1cf4 100644 --- a/content/browser/browsing_instance.h +++ b/content/browser/browsing_instance.h @@ -8,6 +8,7 @@ #include "base/hash_tables.h" #include "base/memory/ref_counted.h" +#include "chrome/browser/profiles/profile.h" class GURL; class SiteInstance; @@ -69,6 +70,12 @@ class BrowsingInstance : public base::RefCounted<BrowsingInstance> { // Get the browser context to which this BrowsingInstance belongs. content::BrowserContext* browser_context() { return browser_context_; } + // Returns the profile. + // TEMPORARY; http://crbug.com/76788 + Profile* profile() { + return Profile::FromBrowserContext(browser_context()); + } + // Returns whether this BrowsingInstance has registered a SiteInstance for // the site of the given URL. bool HasSiteInstance(const GURL& url); |