OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/browser/renderer_host/render_process_host.h" | 9 #include "content/browser/renderer_host/render_process_host.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 explicit SiteInstance(BrowsingInstance* browsing_instance); | 161 explicit SiteInstance(BrowsingInstance* browsing_instance); |
162 | 162 |
163 // Get the effective URL for the given actual URL. | 163 // Get the effective URL for the given actual URL. |
164 static GURL GetEffectiveURL(content::BrowserContext* browser_context, | 164 static GURL GetEffectiveURL(content::BrowserContext* browser_context, |
165 const GURL& url); | 165 const GURL& url); |
166 | 166 |
167 private: | 167 private: |
168 // content::NotificationObserver implementation. | 168 // content::NotificationObserver implementation. |
169 virtual void Observe(int type, | 169 virtual void Observe(int type, |
170 const content::NotificationSource& source, | 170 const content::NotificationSource& source, |
171 const content::NotificationDetails& details); | 171 const content::NotificationDetails& details) OVERRIDE; |
172 | 172 |
173 // The next available SiteInstance ID. | 173 // The next available SiteInstance ID. |
174 static int32 next_site_instance_id_; | 174 static int32 next_site_instance_id_; |
175 | 175 |
176 // A unique ID for this SiteInstance. | 176 // A unique ID for this SiteInstance. |
177 int32 id_; | 177 int32 id_; |
178 | 178 |
179 content::NotificationRegistrar registrar_; | 179 content::NotificationRegistrar registrar_; |
180 | 180 |
181 // BrowsingInstance to which this SiteInstance belongs. | 181 // BrowsingInstance to which this SiteInstance belongs. |
(...skipping 17 matching lines...) Expand all Loading... |
199 // The web site that this SiteInstance is rendering pages for. | 199 // The web site that this SiteInstance is rendering pages for. |
200 GURL site_; | 200 GURL site_; |
201 | 201 |
202 // Whether SetSite has been called. | 202 // Whether SetSite has been called. |
203 bool has_site_; | 203 bool has_site_; |
204 | 204 |
205 DISALLOW_COPY_AND_ASSIGN(SiteInstance); | 205 DISALLOW_COPY_AND_ASSIGN(SiteInstance); |
206 }; | 206 }; |
207 | 207 |
208 #endif // CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_ | 208 #endif // CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_ |
OLD | NEW |