| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SITE_INSTANCE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ | 6 #define CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 int32 id_; | 102 int32 id_; |
| 103 | 103 |
| 104 // The number of active views under this SiteInstance. | 104 // The number of active views under this SiteInstance. |
| 105 size_t active_view_count_; | 105 size_t active_view_count_; |
| 106 | 106 |
| 107 NotificationRegistrar registrar_; | 107 NotificationRegistrar registrar_; |
| 108 | 108 |
| 109 // BrowsingInstance to which this SiteInstance belongs. | 109 // BrowsingInstance to which this SiteInstance belongs. |
| 110 scoped_refptr<BrowsingInstance> browsing_instance_; | 110 scoped_refptr<BrowsingInstance> browsing_instance_; |
| 111 | 111 |
| 112 // Factory for new RenderProcessHosts, not owned by this class. NULL indiactes | |
| 113 // that the default BrowserRenderProcessHost should be created. | |
| 114 const RenderProcessHostFactory* render_process_host_factory_; | |
| 115 | |
| 116 // Current RenderProcessHost that is rendering pages for this SiteInstance. | 112 // Current RenderProcessHost that is rendering pages for this SiteInstance. |
| 117 // This pointer will only change once the RenderProcessHost is destructed. It | 113 // This pointer will only change once the RenderProcessHost is destructed. It |
| 118 // will still remain the same even if the process crashes, since in that | 114 // will still remain the same even if the process crashes, since in that |
| 119 // scenario the RenderProcessHost remains the same. | 115 // scenario the RenderProcessHost remains the same. |
| 120 RenderProcessHost* process_; | 116 RenderProcessHost* process_; |
| 121 | 117 |
| 122 // The web site that this SiteInstance is rendering pages for. | 118 // The web site that this SiteInstance is rendering pages for. |
| 123 GURL site_; | 119 GURL site_; |
| 124 | 120 |
| 125 // Whether SetSite has been called. | 121 // Whether SetSite has been called. |
| 126 bool has_site_; | 122 bool has_site_; |
| 127 | 123 |
| 128 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl); | 124 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl); |
| 129 }; | 125 }; |
| 130 | 126 |
| 131 } // namespace content | 127 } // namespace content |
| 132 | 128 |
| 133 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ | 129 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ |
| OLD | NEW |