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

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

Issue 10014013: Add a hang monitor for Pepper plugins (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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.h" 10 #include "base/process.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) = 0; 124 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) = 0;
125 125
126 // Returns the user browser context associated with this renderer process. 126 // Returns the user browser context associated with this renderer process.
127 virtual content::BrowserContext* GetBrowserContext() const = 0; 127 virtual content::BrowserContext* GetBrowserContext() const = 0;
128 128
129 // Returns the unique ID for this child process. This can be used later in 129 // Returns the unique ID for this child process. This can be used later in
130 // a call to FromID() to get back to this object (this is used to avoid 130 // a call to FromID() to get back to this object (this is used to avoid
131 // sending non-threadsafe pointers to other threads). 131 // sending non-threadsafe pointers to other threads).
132 // 132 //
133 // This ID will be unique for all child processes, including workers, plugins, 133 // This ID will be unique for all child processes, including workers, plugins,
134 // etc. It is generated by ChildProcessInfo. 134 // etc.
brettw 2012/04/10 18:07:56 Noticed some out-of-date comments when figuring ou
135 virtual int GetID() const = 0; 135 virtual int GetID() const = 0;
136 136
137 // Returns the render widget host for the routing id passed in. 137 // Returns the render widget host for the routing id passed in.
138 virtual RenderWidgetHost* GetRenderWidgetHostByID(int routing_id) = 0; 138 virtual RenderWidgetHost* GetRenderWidgetHostByID(int routing_id) = 0;
139 139
140 // Returns true iff channel_ has been set to non-NULL. Use this for checking 140 // Returns true iff channel_ has been set to non-NULL. Use this for checking
141 // if there is connection or not. Virtual for mocking out for tests. 141 // if there is connection or not. Virtual for mocking out for tests.
142 virtual bool HasConnection() const = 0; 142 virtual bool HasConnection() const = 0;
143 143
144 // Call this to allow queueing of IPC messages that are sent before the 144 // Call this to allow queueing of IPC messages that are sent before the
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 // Returns the current max number of renderer processes used by the content 237 // Returns the current max number of renderer processes used by the content
238 // module. 238 // module.
239 static size_t GetMaxRendererProcessCount(); 239 static size_t GetMaxRendererProcessCount();
240 }; 240 };
241 241
242 } // namespace content. 242 } // namespace content.
243 243
244 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 244 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
245 245
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698