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

Side by Side Diff: chrome/browser/renderer_host/render_process_host.h

Issue 468005: Improve reporting of subprocess crashes.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_RENDERER_HOST_RENDER_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 28 matching lines...) Expand all
39 // We classify renderers according to their highest privilege, and try 39 // We classify renderers according to their highest privilege, and try
40 // to group pages into renderers with similar privileges. 40 // to group pages into renderers with similar privileges.
41 // Note: it may be possible for a renderer to have multiple privileges, 41 // Note: it may be possible for a renderer to have multiple privileges,
42 // in which case we call it an "extension" renderer. 42 // in which case we call it an "extension" renderer.
43 enum Type { 43 enum Type {
44 TYPE_NORMAL, // Normal renderer, no extra privileges. 44 TYPE_NORMAL, // Normal renderer, no extra privileges.
45 TYPE_DOMUI, // Renderer with DOMUI privileges, like New Tab. 45 TYPE_DOMUI, // Renderer with DOMUI privileges, like New Tab.
46 TYPE_EXTENSION, // Renderer with extension privileges. 46 TYPE_EXTENSION, // Renderer with extension privileges.
47 }; 47 };
48 48
49 // Details for RENDERER_PROCESS_CLOSED notifications.
50 struct RendererClosedDetails {
51 RendererClosedDetails(bool did_crash, bool was_extension_renderer) {
52 this->did_crash = did_crash;
53 this->was_extension_renderer = was_extension_renderer;
54 }
55 bool did_crash;
56 bool was_extension_renderer;
57 };
58
49 explicit RenderProcessHost(Profile* profile); 59 explicit RenderProcessHost(Profile* profile);
50 virtual ~RenderProcessHost(); 60 virtual ~RenderProcessHost();
51 61
52 // Returns the user profile associated with this renderer process. 62 // Returns the user profile associated with this renderer process.
53 Profile* profile() const { return profile_; } 63 Profile* profile() const { return profile_; }
54 64
55 // Returns the unique ID for this child process. This can be used later in 65 // Returns the unique ID for this child process. This can be used later in
56 // a call to FromID() to get back to this object (this is used to avoid 66 // a call to FromID() to get back to this object (this is used to avoid
57 // sending non-threadsafe pointers to other threads). 67 // sending non-threadsafe pointers to other threads).
58 // 68 //
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 // Factory object for RenderProcessHosts. Using this factory allows tests to 303 // Factory object for RenderProcessHosts. Using this factory allows tests to
294 // swap out a different one to use a TestRenderProcessHost. 304 // swap out a different one to use a TestRenderProcessHost.
295 class RenderProcessHostFactory { 305 class RenderProcessHostFactory {
296 public: 306 public:
297 virtual ~RenderProcessHostFactory() {} 307 virtual ~RenderProcessHostFactory() {}
298 virtual RenderProcessHost* CreateRenderProcessHost( 308 virtual RenderProcessHost* CreateRenderProcessHost(
299 Profile* profile) const = 0; 309 Profile* profile) const = 0;
300 }; 310 };
301 311
302 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ 312 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698