Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 | 106 |
| 107 // Returns the process object associated with the child process. In certain | 107 // Returns the process object associated with the child process. In certain |
| 108 // tests or single-process mode, this will actually represent the current | 108 // tests or single-process mode, this will actually represent the current |
| 109 // process. | 109 // process. |
| 110 // | 110 // |
| 111 // NOTE: this is not necessarily valid immediately after calling Init, as | 111 // NOTE: this is not necessarily valid immediately after calling Init, as |
| 112 // Init starts the process asynchronously. It's guaranteed to be valid after | 112 // Init starts the process asynchronously. It's guaranteed to be valid after |
| 113 // the first IPC arrives. | 113 // the first IPC arrives. |
| 114 virtual base::ProcessHandle GetHandle() = 0; | 114 virtual base::ProcessHandle GetHandle() = 0; |
| 115 | 115 |
| 116 // Returns true if the process can be killed if it is unresponsive. This will | |
| 117 // only be the case if there is only one view using this renderer process. | |
| 118 virtual bool AllowTerminateOnUnresponsive() const = 0; | |
|
Charlie Reis
2012/03/01 21:08:17
We should move this to below SuddenTerminationAllo
nasko
2012/03/01 22:50:15
Done.
Charlie Reis
2012/03/02 00:16:43
Upon reflection, I'm leaning toward something like
nasko
2012/03/02 18:40:36
This makes sense, especially if we want the preren
| |
| 119 | |
| 116 // Transport DIB functions --------------------------------------------------- | 120 // Transport DIB functions --------------------------------------------------- |
| 117 | 121 |
| 118 // Return the TransportDIB for the given id. On Linux, this can involve | 122 // Return the TransportDIB for the given id. On Linux, this can involve |
| 119 // mapping shared memory. On Mac, the shared memory is created in the browser | 123 // mapping shared memory. On Mac, the shared memory is created in the browser |
| 120 // process and the cached metadata is returned. On Windows, this involves | 124 // process and the cached metadata is returned. On Windows, this involves |
| 121 // duplicating the handle from the remote process. The RenderProcessHost | 125 // duplicating the handle from the remote process. The RenderProcessHost |
| 122 // still owns the returned DIB. | 126 // still owns the returned DIB. |
| 123 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) = 0; | 127 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) = 0; |
| 124 | 128 |
| 125 // Returns the user browser context associated with this renderer process. | 129 // Returns the user browser context associated with this renderer process. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 229 | 233 |
| 230 // Returns the current max number of renderer processes used by the content | 234 // Returns the current max number of renderer processes used by the content |
| 231 // module. | 235 // module. |
| 232 static size_t GetMaxRendererProcessCount(); | 236 static size_t GetMaxRendererProcessCount(); |
| 233 }; | 237 }; |
| 234 | 238 |
| 235 } // namespace content. | 239 } // namespace content. |
| 236 | 240 |
| 237 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 241 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
| 238 | 242 |
| OLD | NEW |