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

Unified Diff: content/browser/site_instance_impl.cc

Issue 241223002: Start using RenderFrameProxyHost objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar fixes. Created 6 years, 6 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
Index: content/browser/site_instance_impl.cc
diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc
index b6e6918c0a48d755b0ae631270858c440afd3cb0..eb7ecd67fb357d792965396ced6438500973ba34 100644
--- a/content/browser/site_instance_impl.cc
+++ b/content/browser/site_instance_impl.cc
@@ -30,6 +30,8 @@ SiteInstanceImpl::SiteInstanceImpl(BrowsingInstance* browsing_instance)
process_(NULL),
has_site_(false) {
DCHECK(browsing_instance);
+ LOG(ERROR) << "SI::SI[" << this << "]:"
+ << " id:" << id_;
}
SiteInstanceImpl::~SiteInstanceImpl() {
@@ -44,6 +46,8 @@ SiteInstanceImpl::~SiteInstanceImpl() {
if (has_site_)
browsing_instance_->UnregisterSiteInstance(
static_cast<SiteInstance*>(this));
+ LOG(ERROR) << "SI::~SI[" << this << "]:"
+ << " id:" << id_;
}
int32 SiteInstanceImpl::GetId() {
@@ -144,6 +148,9 @@ void SiteInstanceImpl::SetSite(const GURL& url) {
BrowserContext* browser_context = browsing_instance_->browser_context();
site_ = GetSiteForURL(browser_context, url);
+ LOG(ERROR) << "SI::SI[" << this << "]:"
+ << " site:" << site_;
+
// Now that we have a site, register it with the BrowsingInstance. This
// ensures that we won't create another SiteInstance for this site within
// the same BrowsingInstance, because all same-site pages within a
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698