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

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

Issue 14137016: Lower the priority of shared workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from review. Created 7 years, 6 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 | « no previous file | 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
64 // Controls whether the child process should be terminated on browser 67 // Controls whether the child process should be terminated on browser
65 // shutdown. Default is to always terminate. 68 // shutdown. Default is to always terminate.
66 void SetTerminateChildOnShutdown(bool terminate_on_shutdown); 69 void SetTerminateChildOnShutdown(bool terminate_on_shutdown);
67 70
68 // Called when an instance of a particular child is created in a page. 71 // Called when an instance of a particular child is created in a page.
69 static void NotifyProcessInstanceCreated(const ChildProcessData& data); 72 static void NotifyProcessInstanceCreated(const ChildProcessData& data);
70 73
71 BrowserChildProcessHostDelegate* delegate() const { return delegate_; } 74 BrowserChildProcessHostDelegate* delegate() const { return delegate_; }
72 75
73 typedef std::list<BrowserChildProcessHostImpl*> BrowserChildProcessList; 76 typedef std::list<BrowserChildProcessHostImpl*> BrowserChildProcessList;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Watches to see if the child process exits before the IPC channel has 108 // Watches to see if the child process exits before the IPC channel has
106 // been connected. Thereafter, its exit is determined by an error on the 109 // been connected. Thereafter, its exit is determined by an error on the
107 // IPC channel. 110 // IPC channel.
108 base::WaitableEventWatcher early_exit_watcher_; 111 base::WaitableEventWatcher early_exit_watcher_;
109 #endif 112 #endif
110 }; 113 };
111 114
112 } // namespace content 115 } // namespace content
113 116
114 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ 117 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698