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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 class Renderer; | 47 class Renderer; |
48 } | 48 } |
49 | 49 |
50 // Interface that represents the browser side of the browser <-> renderer | 50 // Interface that represents the browser side of the browser <-> renderer |
51 // communication channel. There will generally be one RenderProcessHost per | 51 // communication channel. There will generally be one RenderProcessHost per |
52 // renderer process. | 52 // renderer process. |
53 class CONTENT_EXPORT RenderProcessHost : public IPC::Sender, | 53 class CONTENT_EXPORT RenderProcessHost : public IPC::Sender, |
54 public IPC::Listener, | 54 public IPC::Listener, |
55 public base::SupportsUserData { | 55 public base::SupportsUserData { |
56 public: | 56 public: |
57 typedef IDMap<RenderProcessHost>::iterator iterator; | 57 using iterator = IDMap<RenderProcessHost*>::iterator; |
58 | 58 |
59 // Details for RENDERER_PROCESS_CLOSED notifications. | 59 // Details for RENDERER_PROCESS_CLOSED notifications. |
60 struct RendererClosedDetails { | 60 struct RendererClosedDetails { |
61 RendererClosedDetails(base::TerminationStatus status, | 61 RendererClosedDetails(base::TerminationStatus status, |
62 int exit_code) { | 62 int exit_code) { |
63 this->status = status; | 63 this->status = status; |
64 this->exit_code = exit_code; | 64 this->exit_code = exit_code; |
65 } | 65 } |
66 base::TerminationStatus status; | 66 base::TerminationStatus status; |
67 int exit_code; | 67 int exit_code; |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 static void SetMaxRendererProcessCount(size_t count); | 387 static void SetMaxRendererProcessCount(size_t count); |
388 | 388 |
389 // Returns the current maximum number of renderer process hosts kept by the | 389 // Returns the current maximum number of renderer process hosts kept by the |
390 // content module. | 390 // content module. |
391 static size_t GetMaxRendererProcessCount(); | 391 static size_t GetMaxRendererProcessCount(); |
392 }; | 392 }; |
393 | 393 |
394 } // namespace content. | 394 } // namespace content. |
395 | 395 |
396 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 396 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |