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

Side by Side Diff: content/public/common/child_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
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_PULIC_COMMON_CHILD_PROCESS_HOST_H_ 5 #ifndef CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_
6 #define CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ 6 #define CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_
7 7
8 #include "base/files/scoped_file.h" 8 #include "base/files/scoped_file.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "ipc/ipc_channel_proxy.h" 11 #include "ipc/ipc_channel_proxy.h"
12 12
13 namespace base { 13 namespace base {
14 class FilePath; 14 class FilePath;
15 } 15 }
16 16
17 namespace IPC { 17 namespace IPC {
18 class MessageFilter; 18 class MessageFilter;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 22
23 class ChildProcessHostDelegate; 23 class ChildProcessHostDelegate;
24 24
25 // This represents a non-browser process. This can include traditional child 25 // This represents a non-browser process. This can include traditional child
26 // processes like plugins, or an embedder could even use this for long lived 26 // processes like plugins, or an embedder could even use this for long lived
27 // processes that run independent of the browser process. 27 // processes that run independent of the browser process.
28 class CONTENT_EXPORT ChildProcessHost : public IPC::Sender { 28 class CONTENT_EXPORT ChildProcessHost : public IPC::Sender {
29 public: 29 public:
30 virtual ~ChildProcessHost() {} 30 ~ChildProcessHost() override {}
31 31
32 // This is a value never returned as the unique id of any child processes of 32 // This is a value never returned as the unique id of any child processes of
33 // any kind, including the values returned by RenderProcessHost::GetID(). 33 // any kind, including the values returned by RenderProcessHost::GetID().
34 static int kInvalidUniqueID; 34 static int kInvalidUniqueID;
35 35
36 // Used to create a child process host. The delegate must outlive this object. 36 // Used to create a child process host. The delegate must outlive this object.
37 static ChildProcessHost* Create(ChildProcessHostDelegate* delegate); 37 static ChildProcessHost* Create(ChildProcessHostDelegate* delegate);
38 38
39 // These flags may be passed to GetChildPath in order to alter its behavior, 39 // These flags may be passed to GetChildPath in order to alter its behavior,
40 // causing it to return a child path more suited to a specific task. 40 // causing it to return a child path more suited to a specific task.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 #if defined(OS_POSIX) 100 #if defined(OS_POSIX)
101 // See IPC::Channel::TakeClientFileDescriptor. 101 // See IPC::Channel::TakeClientFileDescriptor.
102 virtual base::ScopedFD TakeClientFileDescriptor() = 0; 102 virtual base::ScopedFD TakeClientFileDescriptor() = 0;
103 #endif 103 #endif
104 }; 104 };
105 105
106 }; // namespace content 106 }; // namespace content
107 107
108 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ 108 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_observer.h ('k') | content/public/common/child_process_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698