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

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

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « content/public/browser/desktop_media_id.cc ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698