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

Side by Side Diff: chrome/browser/tab_contents/site_instance.h

Issue 66069: Don't overload the meaning of the RENDERER_PROCESS_TERMINATED notification, i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/renderer_host/render_process_host.cc ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_TAB_CONTENTS_SITE_INSTANCE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_SITE_INSTANCE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_SITE_INSTANCE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_SITE_INSTANCE_H_
7 7
8 #include "chrome/browser/browsing_instance.h" 8 #include "chrome/browser/browsing_instance.h"
9 #include "chrome/browser/renderer_host/render_process_host.h" 9 #include "chrome/browser/renderer_host/render_process_host.h"
10 #include "chrome/common/notification_observer.h" 10 #include "chrome/common/notification_observer.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 const NotificationDetails& details); 138 const NotificationDetails& details);
139 139
140 // BrowsingInstance to which this SiteInstance belongs. 140 // BrowsingInstance to which this SiteInstance belongs.
141 scoped_refptr<BrowsingInstance> browsing_instance_; 141 scoped_refptr<BrowsingInstance> browsing_instance_;
142 142
143 // Factory for new RenderProcessHosts, not owned by this class. NULL indiactes 143 // Factory for new RenderProcessHosts, not owned by this class. NULL indiactes
144 // that the default BrowserRenderProcessHost should be created. 144 // that the default BrowserRenderProcessHost should be created.
145 const RenderProcessHostFactory* render_process_host_factory_; 145 const RenderProcessHostFactory* render_process_host_factory_;
146 146
147 // Current RenderProcessHost that is rendering pages for this SiteInstance. 147 // Current RenderProcessHost that is rendering pages for this SiteInstance.
148 // This pointer will only change once the RenderProcessHost is destructed. It
149 // will still remain the same even if the process crashes, since in that
150 // scenario the RenderProcessHost remains the same.
148 RenderProcessHost* process_; 151 RenderProcessHost* process_;
149 152
150 // The current max_page_id in the SiteInstance's RenderProcessHost. If the 153 // The current max_page_id in the SiteInstance's RenderProcessHost. If the
151 // rendering process dies, its replacement should start issuing page IDs that 154 // rendering process dies, its replacement should start issuing page IDs that
152 // are larger than this value. 155 // are larger than this value.
153 int32 max_page_id_; 156 int32 max_page_id_;
154 157
155 // The web site that this SiteInstance is rendering pages for. 158 // The web site that this SiteInstance is rendering pages for.
156 GURL site_; 159 GURL site_;
157 160
158 // Whether SetSite has been called. 161 // Whether SetSite has been called.
159 bool has_site_; 162 bool has_site_;
160 163
161 DISALLOW_EVIL_CONSTRUCTORS(SiteInstance); 164 DISALLOW_EVIL_CONSTRUCTORS(SiteInstance);
162 }; 165 };
163 166
164 #endif // CHROME_BROWSER_TAB_CONTENTS_SITE_INSTANCE_H_ 167 #endif // CHROME_BROWSER_TAB_CONTENTS_SITE_INSTANCE_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_process_host.cc ('k') | chrome/common/notification_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698