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

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

Issue 15012025: Revert 199840 "Lower the priority of shared workers that aren't ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | trunk/src/content/browser/browser_child_process_host_impl.cc » ('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_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void SetName(const string16& name) OVERRIDE; 54 virtual void SetName(const string16& name) OVERRIDE;
55 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE; 55 virtual void SetHandle(base::ProcessHandle handle) OVERRIDE;
56 56
57 // Returns the handle of the child process. This can be called only after 57 // Returns the handle of the child process. This can be called only after
58 // OnProcessLaunched is called or it will be invalid and may crash. 58 // OnProcessLaunched is called or it will be invalid and may crash.
59 base::ProcessHandle GetHandle() const; 59 base::ProcessHandle GetHandle() const;
60 60
61 // Removes this host from the host list. Calls ChildProcessHost::ForceShutdown 61 // Removes this host from the host list. Calls ChildProcessHost::ForceShutdown
62 void ForceShutdown(); 62 void ForceShutdown();
63 63
64 // Callers can reduce the BrowserChildProcess' priority.
65 void SetBackgrounded(bool backgrounded);
66
67 // Controls whether the child process should be terminated on browser 64 // Controls whether the child process should be terminated on browser
68 // shutdown. Default is to always terminate. 65 // shutdown. Default is to always terminate.
69 void SetTerminateChildOnShutdown(bool terminate_on_shutdown); 66 void SetTerminateChildOnShutdown(bool terminate_on_shutdown);
70 67
71 // Called when an instance of a particular child is created in a page. 68 // Called when an instance of a particular child is created in a page.
72 static void NotifyProcessInstanceCreated(const ChildProcessData& data); 69 static void NotifyProcessInstanceCreated(const ChildProcessData& data);
73 70
74 BrowserChildProcessHostDelegate* delegate() const { return delegate_; } 71 BrowserChildProcessHostDelegate* delegate() const { return delegate_; }
75 72
76 typedef std::list<BrowserChildProcessHostImpl*> BrowserChildProcessList; 73 typedef std::list<BrowserChildProcessHostImpl*> BrowserChildProcessList;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Watches to see if the child process exits before the IPC channel has 105 // Watches to see if the child process exits before the IPC channel has
109 // been connected. Thereafter, its exit is determined by an error on the 106 // been connected. Thereafter, its exit is determined by an error on the
110 // IPC channel. 107 // IPC channel.
111 base::WaitableEventWatcher early_exit_watcher_; 108 base::WaitableEventWatcher early_exit_watcher_;
112 #endif 109 #endif
113 }; 110 };
114 111
115 } // namespace content 112 } // namespace content
116 113
117 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 114 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | trunk/src/content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698