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

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

Issue 2988453002: Task manager tracking RenderProcessHosts processes (Closed)
Patch Set: fixed copy past cruft Created 3 years, 4 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_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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // process. 170 // process.
171 // 171 //
172 // NOTE: this is not necessarily valid immediately after calling Init, as 172 // NOTE: this is not necessarily valid immediately after calling Init, as
173 // Init starts the process asynchronously. It's guaranteed to be valid after 173 // Init starts the process asynchronously. It's guaranteed to be valid after
174 // the first IPC arrives or RenderProcessReady was called on a 174 // the first IPC arrives or RenderProcessReady was called on a
175 // RenderProcessHostObserver for this. At that point, IsReady() returns true. 175 // RenderProcessHostObserver for this. At that point, IsReady() returns true.
176 virtual base::ProcessHandle GetHandle() const = 0; 176 virtual base::ProcessHandle GetHandle() const = 0;
177 177
178 // Returns whether the process is ready. The process is ready once both 178 // Returns whether the process is ready. The process is ready once both
179 // conditions (which can happen in arbitrary order) are true: 179 // conditions (which can happen in arbitrary order) are true:
180 // 1- the launcher reported a succesful launch 180 // 1- the launcher reported a successful launch
181 // 2- the channel is connected. 181 // 2- the channel is connected.
182 // 182 //
183 // After that point, GetHandle() is valid, and deferred messages have been 183 // After that point, GetHandle() is valid, and deferred messages have been
184 // sent. 184 // sent.
185 virtual bool IsReady() const = 0; 185 virtual bool IsReady() const = 0;
186 186
187 // Returns the user browser context associated with this renderer process. 187 // Returns the user browser context associated with this renderer process.
188 virtual content::BrowserContext* GetBrowserContext() const = 0; 188 virtual content::BrowserContext* GetBrowserContext() const = 0;
189 189
190 // Returns whether this process is using the same StoragePartition as 190 // Returns whether this process is using the same StoragePartition as
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 static void SetMaxRendererProcessCount(size_t count); 476 static void SetMaxRendererProcessCount(size_t count);
477 477
478 // Returns the current maximum number of renderer process hosts kept by the 478 // Returns the current maximum number of renderer process hosts kept by the
479 // content module. 479 // content module.
480 static size_t GetMaxRendererProcessCount(); 480 static size_t GetMaxRendererProcessCount();
481 }; 481 };
482 482
483 } // namespace content. 483 } // namespace content.
484 484
485 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 485 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698