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

Side by Side Diff: content/public/browser/render_process_host.h

Issue 111063003: Aura: Don't create GL context for CreateSharedSurfaceHandle() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
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_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/process/kill.h" 10 #include "base/process/kill.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 virtual void SetSuddenTerminationAllowed(bool allowed) = 0; 194 virtual void SetSuddenTerminationAllowed(bool allowed) = 0;
195 // Returns true if the process can be abnormally terminated. 195 // Returns true if the process can be abnormally terminated.
196 virtual bool SuddenTerminationAllowed() const = 0; 196 virtual bool SuddenTerminationAllowed() const = 0;
197 197
198 // Returns how long the child has been idle. The definition of idle 198 // Returns how long the child has been idle. The definition of idle
199 // depends on when a derived class calls mark_child_process_activity_time(). 199 // depends on when a derived class calls mark_child_process_activity_time().
200 // This is a rough indicator and its resolution should not be better than 200 // This is a rough indicator and its resolution should not be better than
201 // 10 milliseconds. 201 // 10 milliseconds.
202 virtual base::TimeDelta GetChildProcessIdleTime() const = 0; 202 virtual base::TimeDelta GetChildProcessIdleTime() const = 0;
203 203
204 // Signals that a compositing surface has been updated after a lost context
205 // event, so that we can process requests from the renderer to create contexts
206 // with that surface.
207 virtual void SurfaceUpdated(int32 surface_id) = 0;
208
209 // Called to resume the requests for a view created through window.open that 204 // Called to resume the requests for a view created through window.open that
210 // were initially blocked. 205 // were initially blocked.
211 virtual void ResumeRequestsForView(int route_id) = 0; 206 virtual void ResumeRequestsForView(int route_id) = 0;
212 207
213 // Static management functions ----------------------------------------------- 208 // Static management functions -----------------------------------------------
214 209
215 // Flag to run the renderer in process. This is primarily 210 // Flag to run the renderer in process. This is primarily
216 // for debugging purposes. When running "in process", the 211 // for debugging purposes. When running "in process", the
217 // browser maintains a single RenderProcessHost which communicates 212 // browser maintains a single RenderProcessHost which communicates
218 // to a RenderProcess which is instantiated in the same process 213 // to a RenderProcess which is instantiated in the same process
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // module. 259 // module.
265 static size_t GetMaxRendererProcessCount(); 260 static size_t GetMaxRendererProcessCount();
266 261
267 static void RegisterRendererMainThreadFactory( 262 static void RegisterRendererMainThreadFactory(
268 RendererMainThreadFactoryFunction create); 263 RendererMainThreadFactoryFunction create);
269 }; 264 };
270 265
271 } // namespace content. 266 } // namespace content.
272 267
273 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 268 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698