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

Side by Side Diff: content/browser/site_instance_impl.h

Issue 2573213002: Consolidate all TDI SiteInstances into one render process. (Closed)
Patch Set: comment Created 3 years, 11 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
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // RenderProcessHostObserver implementation. 137 // RenderProcessHostObserver implementation.
138 void RenderProcessHostDestroyed(RenderProcessHost* host) override; 138 void RenderProcessHostDestroyed(RenderProcessHost* host) override;
139 void RenderProcessWillExit(RenderProcessHost* host) override; 139 void RenderProcessWillExit(RenderProcessHost* host) override;
140 void RenderProcessExited(RenderProcessHost* host, 140 void RenderProcessExited(RenderProcessHost* host,
141 base::TerminationStatus status, 141 base::TerminationStatus status,
142 int exit_code) override; 142 int exit_code) override;
143 143
144 // Used to restrict a process' origin access rights. 144 // Used to restrict a process' origin access rights.
145 void LockToOrigin(); 145 void LockToOrigin();
146 146
147 // This gets the render process to use for default subframe site instances.
148 RenderProcessHost* GetDefaultSubframeProcessHost(
149 BrowserContext* browser_context,
150 bool is_for_guests_only);
151
147 void set_is_default_subframe_site_instance() { 152 void set_is_default_subframe_site_instance() {
148 is_default_subframe_site_instance_ = true; 153 is_default_subframe_site_instance_ = true;
149 } 154 }
150 155
151 // An object used to construct RenderProcessHosts. 156 // An object used to construct RenderProcessHosts.
152 static const RenderProcessHostFactory* g_render_process_host_factory_; 157 static const RenderProcessHostFactory* g_render_process_host_factory_;
153 158
154 // The next available SiteInstance ID. 159 // The next available SiteInstance ID.
155 static int32_t next_site_instance_id_; 160 static int32_t next_site_instance_id_;
156 161
(...skipping 24 matching lines...) Expand all
181 bool is_default_subframe_site_instance_; 186 bool is_default_subframe_site_instance_;
182 187
183 base::ObserverList<Observer, true> observers_; 188 base::ObserverList<Observer, true> observers_;
184 189
185 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl); 190 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl);
186 }; 191 };
187 192
188 } // namespace content 193 } // namespace content
189 194
190 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ 195 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698