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

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

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | content/public/browser/render_view_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/kill.h" 10 #include "base/process/kill.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 this->status = status; 49 this->status = status;
50 this->exit_code = exit_code; 50 this->exit_code = exit_code;
51 } 51 }
52 base::ProcessHandle handle; 52 base::ProcessHandle handle;
53 base::TerminationStatus status; 53 base::TerminationStatus status;
54 int exit_code; 54 int exit_code;
55 }; 55 };
56 56
57 // General functions --------------------------------------------------------- 57 // General functions ---------------------------------------------------------
58 58
59 virtual ~RenderProcessHost() {} 59 ~RenderProcessHost() override {}
60 60
61 // Initialize the new renderer process, returning true on success. This must 61 // Initialize the new renderer process, returning true on success. This must
62 // be called once before the object can be used, but can be called after 62 // be called once before the object can be used, but can be called after
63 // that with no effect. Therefore, if the caller isn't sure about whether 63 // that with no effect. Therefore, if the caller isn't sure about whether
64 // the process has been created, it should just call Init(). 64 // the process has been created, it should just call Init().
65 virtual bool Init() = 0; 65 virtual bool Init() = 0;
66 66
67 // Gets the next available routing id. 67 // Gets the next available routing id.
68 virtual int GetNextRoutingID() = 0; 68 virtual int GetNextRoutingID() = 0;
69 69
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 static void SetMaxRendererProcessCount(size_t count); 280 static void SetMaxRendererProcessCount(size_t count);
281 281
282 // Returns the current maximum number of renderer process hosts kept by the 282 // Returns the current maximum number of renderer process hosts kept by the
283 // content module. 283 // content module.
284 static size_t GetMaxRendererProcessCount(); 284 static size_t GetMaxRendererProcessCount();
285 }; 285 };
286 286
287 } // namespace content. 287 } // namespace content.
288 288
289 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 289 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | content/public/browser/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698