| 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/notification_observer.h" | 10 #include "content/common/notification_observer.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 // Get the effective URL for the given actual URL. | 160 // Get the effective URL for the given actual URL. |
| 161 static GURL GetEffectiveURL(Profile* profile, const GURL& url); | 161 static GURL GetEffectiveURL(Profile* profile, const GURL& url); |
| 162 | 162 |
| 163 // Returns the type of renderer process this instance belongs in, for grouping | 163 // Returns the type of renderer process this instance belongs in, for grouping |
| 164 // purposes. | 164 // purposes. |
| 165 RenderProcessHost::Type GetRendererType(); | 165 RenderProcessHost::Type GetRendererType(); |
| 166 | 166 |
| 167 private: | 167 private: |
| 168 // NotificationObserver implementation. | 168 // NotificationObserver implementation. |
| 169 virtual void Observe(NotificationType type, | 169 virtual void Observe(int type, |
| 170 const NotificationSource& source, | 170 const NotificationSource& source, |
| 171 const NotificationDetails& details); | 171 const NotificationDetails& details); |
| 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 NotificationRegistrar registrar_; | 179 NotificationRegistrar registrar_; |
| (...skipping 19 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 |