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

Side by Side Diff: content/browser/browser_child_process_host_impl.h

Issue 972083002: Report utility process JS memory in task manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-oop
Patch Set: Rebase and fix build. Created 5 years, 7 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_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 12 matching lines...) Expand all
23 23
24 namespace base { 24 namespace base {
25 class CommandLine; 25 class CommandLine;
26 } 26 }
27 27
28 namespace content { 28 namespace content {
29 29
30 class BrowserChildProcessHostIterator; 30 class BrowserChildProcessHostIterator;
31 class BrowserChildProcessObserver; 31 class BrowserChildProcessObserver;
32 class BrowserMessageFilter; 32 class BrowserMessageFilter;
33 class ServiceRegistry;
33 34
34 // Plugins/workers and other child processes that live on the IO thread use this 35 // Plugins/workers and other child processes that live on the IO thread use this
35 // class. RenderProcessHostImpl is the main exception that doesn't use this 36 // class. RenderProcessHostImpl is the main exception that doesn't use this
36 /// class because it lives on the UI thread. 37 /// class because it lives on the UI thread.
37 class CONTENT_EXPORT BrowserChildProcessHostImpl 38 class CONTENT_EXPORT BrowserChildProcessHostImpl
38 : public BrowserChildProcessHost, 39 : public BrowserChildProcessHost,
39 public NON_EXPORTED_BASE(ChildProcessHostDelegate), 40 public NON_EXPORTED_BASE(ChildProcessHostDelegate),
40 #if defined(OS_WIN) 41 #if defined(OS_WIN)
41 public base::win::ObjectWatcher::Delegate, 42 public base::win::ObjectWatcher::Delegate,
42 #endif 43 #endif
(...skipping 11 matching lines...) Expand all
54 bool Send(IPC::Message* message) override; 55 bool Send(IPC::Message* message) override;
55 void Launch(SandboxedProcessLauncherDelegate* delegate, 56 void Launch(SandboxedProcessLauncherDelegate* delegate,
56 base::CommandLine* cmd_line, 57 base::CommandLine* cmd_line,
57 bool terminate_on_shutdown) override; 58 bool terminate_on_shutdown) override;
58 const ChildProcessData& GetData() const override; 59 const ChildProcessData& GetData() const override;
59 ChildProcessHost* GetHost() const override; 60 ChildProcessHost* GetHost() const override;
60 base::TerminationStatus GetTerminationStatus(bool known_dead, 61 base::TerminationStatus GetTerminationStatus(bool known_dead,
61 int* exit_code) override; 62 int* exit_code) override;
62 void SetName(const base::string16& name) override; 63 void SetName(const base::string16& name) override;
63 void SetHandle(base::ProcessHandle handle) override; 64 void SetHandle(base::ProcessHandle handle) override;
65 ServiceRegistry* GetServiceRegistry() override;
64 66
65 // ChildProcessHostDelegate implementation: 67 // ChildProcessHostDelegate implementation:
66 bool CanShutdown() override; 68 bool CanShutdown() override;
67 void OnChildDisconnected() override; 69 void OnChildDisconnected() override;
68 const base::Process& GetProcess() const override; 70 const base::Process& GetProcess() const override;
69 bool OnMessageReceived(const IPC::Message& message) override; 71 bool OnMessageReceived(const IPC::Message& message) override;
70 void OnChannelConnected(int32 peer_pid) override; 72 void OnChannelConnected(int32 peer_pid) override;
71 void OnChannelError() override; 73 void OnChannelError() override;
72 void OnBadMessageReceived(const IPC::Message& message) override; 74 void OnBadMessageReceived(const IPC::Message& message) override;
73 75
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Watches to see if the child process exits before the IPC channel has 120 // Watches to see if the child process exits before the IPC channel has
119 // been connected. Thereafter, its exit is determined by an error on the 121 // been connected. Thereafter, its exit is determined by an error on the
120 // IPC channel. 122 // IPC channel.
121 base::win::ObjectWatcher early_exit_watcher_; 123 base::win::ObjectWatcher early_exit_watcher_;
122 #endif 124 #endif
123 }; 125 };
124 126
125 } // namespace content 127 } // namespace content
126 128
127 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 129 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698