summaryrefslogtreecommitdiffstats
path: root/content/browser/browsing_instance.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 19:29:56 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 19:29:56 +0000
commit74d32ec47f9098ae52997b159cf05342020d72a9 (patch)
tree1a2b178feceea57e0e15250cc7c5fc44114fe436 /content/browser/browsing_instance.h
parent331bf1416770ae1a2b3649369b596f6f5511bd72 (diff)
downloadchromium_src-74d32ec47f9098ae52997b159cf05342020d72a9.zip
chromium_src-74d32ec47f9098ae52997b159cf05342020d72a9.tar.gz
chromium_src-74d32ec47f9098ae52997b159cf05342020d72a9.tar.bz2
Revert 94332 - Removal of Profile from content part 2.
BUG=76788 TEST=no change visible Review URL: http://codereview.chromium.org/7480028 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/7492051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94335 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browsing_instance.h')
-rw-r--r--content/browser/browsing_instance.h7
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);