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

Unified Diff: content/browser/site_instance.cc

Issue 6319001: Support window.opener after a process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk. Created 9 years, 7 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
« no previous file with comments | « content/browser/site_instance.h ('k') | content/browser/tab_contents/render_view_host_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/site_instance.cc
diff --git a/content/browser/site_instance.cc b/content/browser/site_instance.cc
index a12110943419e926b4b2bed1412bba16c1e36543..ed8cd9b7bedc371198ac2fb03d29c17ae6b1641e 100644
--- a/content/browser/site_instance.cc
+++ b/content/browser/site_instance.cc
@@ -25,8 +25,11 @@ static bool IsURLSameAsAnySiteInstance(const GURL& url) {
url.spec() == chrome::kAboutShorthangURL;
}
+int32 SiteInstance::next_site_instance_id_ = 1;
+
SiteInstance::SiteInstance(BrowsingInstance* browsing_instance)
- : browsing_instance_(browsing_instance),
+ : id_(next_site_instance_id_++),
+ browsing_instance_(browsing_instance),
render_process_host_factory_(NULL),
process_(NULL),
max_page_id_(-1),
« no previous file with comments | « content/browser/site_instance.h ('k') | content/browser/tab_contents/render_view_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698