summaryrefslogtreecommitdiffstats
path: root/content/browser/browser_child_process_host.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 18:43:33 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 18:43:33 +0000
commitf174efdeef740d594124f820abb18ed1185cc57d (patch)
treeeaff8f7f18edb072d1ef2c780d5b74e03b90dc4a /content/browser/browser_child_process_host.cc
parentc63cedf228f9390647cafed05b64d0fc1fdf3e54 (diff)
downloadchromium_src-f174efdeef740d594124f820abb18ed1185cc57d.zip
chromium_src-f174efdeef740d594124f820abb18ed1185cc57d.tar.gz
chromium_src-f174efdeef740d594124f820abb18ed1185cc57d.tar.bz2
Group BrowserChildProcesshost methods that will be part of the interface together, and make sure they're all CamelCase.
BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9228012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/browser_child_process_host.cc')
-rw-r--r--content/browser/browser_child_process_host.cc17
1 files changed, 13 insertions, 4 deletions
diff --git a/content/browser/browser_child_process_host.cc b/content/browser/browser_child_process_host.cc
index 38861aa..9bd3b21 100644
--- a/content/browser/browser_child_process_host.cc
+++ b/content/browser/browser_child_process_host.cc
@@ -39,8 +39,8 @@ using content::ChildProcessHostImpl;
namespace {
-typedef std::list<BrowserChildProcessHost*> ChildProcessList;
-static base::LazyInstance<ChildProcessList> g_child_process_list =
+typedef std::list<BrowserChildProcessHost*> BrowserChildProcessList;
+static base::LazyInstance<BrowserChildProcessList> g_child_process_list =
LAZY_INSTANCE_INITIALIZER;
// Helper functions since the child process related notifications happen on the
@@ -77,8 +77,9 @@ BrowserChildProcessHost::~BrowserChildProcessHost() {
// static
void BrowserChildProcessHost::TerminateAll() {
- // Make a copy since the ChildProcessHost dtor mutates the original list.
- ChildProcessList copy = g_child_process_list.Get();
+ // Make a copy since the BrowserChildProcessHost dtor mutates the original
+ // list.
+ BrowserChildProcessList copy = g_child_process_list.Get();
STLDeleteElements(&copy);
}
@@ -114,6 +115,14 @@ base::ProcessHandle BrowserChildProcessHost::GetChildProcessHandle() const {
return child_process_->GetHandle();
}
+void BrowserChildProcessHost::SetName(const string16& name) {
+ data_.name = name;
+}
+
+void BrowserChildProcessHost::SetHandle(base::ProcessHandle handle) {
+ data_.handle = handle;
+}
+
void BrowserChildProcessHost::ForceShutdown() {
g_child_process_list.Get().remove(this);
child_process_host_->ForceShutdown();