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

Unified Diff: content/browser/site_instance.h

Issue 6319001: Support window.opener after a process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better message filtering approach. Created 9 years, 8 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.h
diff --git a/content/browser/site_instance.h b/content/browser/site_instance.h
index 76f966eafa72d7b4d390459154d6270182bee974..3b6346d5ea367c7dbbab2dff7995d2e5c201bf59 100644
--- a/content/browser/site_instance.h
+++ b/content/browser/site_instance.h
@@ -50,6 +50,9 @@ class BrowsingInstance;
class SiteInstance : public base::RefCounted<SiteInstance>,
public NotificationObserver {
public:
+ // Returns a unique ID for this SiteInstance.
+ int32 id() { return id_; }
+
// Get the BrowsingInstance to which this SiteInstance belongs.
BrowsingInstance* browsing_instance() { return browsing_instance_; }
@@ -162,6 +165,12 @@ class SiteInstance : public base::RefCounted<SiteInstance>,
const NotificationSource& source,
const NotificationDetails& details);
+ // The next available SiteInstance ID.
+ static int32 next_site_instance_id_;
+
+ // A unique ID for this SiteInstance.
+ int32 id_;
+
NotificationRegistrar registrar_;
// BrowsingInstance to which this SiteInstance belongs.

Powered by Google App Engine
This is Rietveld 408576698