Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #include "content/child/child_thread_impl.h" | 5 #include "content/child/child_thread_impl.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 632 else | 632 else |
| 633 IPC::Logging::GetInstance()->Disable(); | 633 IPC::Logging::GetInstance()->Disable(); |
| 634 } | 634 } |
| 635 #endif // IPC_MESSAGE_LOG_ENABLED | 635 #endif // IPC_MESSAGE_LOG_ENABLED |
| 636 | 636 |
| 637 void ChildThreadImpl::OnSetProfilerStatus(ThreadData::Status status) { | 637 void ChildThreadImpl::OnSetProfilerStatus(ThreadData::Status status) { |
| 638 ThreadData::InitializeAndSetTrackingStatus(status); | 638 ThreadData::InitializeAndSetTrackingStatus(status); |
| 639 } | 639 } |
| 640 | 640 |
| 641 void ChildThreadImpl::OnGetChildProfilerData(int sequence_number) { | 641 void ChildThreadImpl::OnGetChildProfilerData(int sequence_number) { |
| 642 tracked_objects::ProcessDataSnapshot process_data; | 642 tracked_objects::ProcessDataSnapshot process_data_snapshot; |
| 643 ThreadData::Snapshot(&process_data); | 643 ThreadData::GetProcessDataSnapshot(&process_data_snapshot); |
| 644 | 644 |
| 645 Send(new ChildProcessHostMsg_ChildProfilerData(sequence_number, | 645 Send(new ChildProcessHostMsg_ChildProfilerData(sequence_number, |
| 646 process_data)); | 646 process_data_snapshot)); |
|
Ilya Sherman
2015/03/10 00:48:11
Optional nit: IMO none of the renames here help wi
vadimt
2015/03/13 23:18:02
Agreed. Must be a result of massive renames throug
| |
| 647 } | 647 } |
| 648 | 648 |
| 649 void ChildThreadImpl::OnDumpHandles() { | 649 void ChildThreadImpl::OnDumpHandles() { |
| 650 #if defined(OS_WIN) | 650 #if defined(OS_WIN) |
| 651 scoped_refptr<HandleEnumerator> handle_enum( | 651 scoped_refptr<HandleEnumerator> handle_enum( |
| 652 new HandleEnumerator( | 652 new HandleEnumerator( |
| 653 base::CommandLine::ForCurrentProcess()->HasSwitch( | 653 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 654 switches::kAuditAllHandles))); | 654 switches::kAuditAllHandles))); |
| 655 handle_enum->EnumerateHandles(); | 655 handle_enum->EnumerateHandles(); |
| 656 Send(new ChildProcessHostMsg_DumpHandlesDone); | 656 Send(new ChildProcessHostMsg_DumpHandlesDone); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 735 // doesn't cause such issues. TODO(gab): Remove this once the experiment is | 735 // doesn't cause such issues. TODO(gab): Remove this once the experiment is |
| 736 // over (http://crbug.com/458594). | 736 // over (http://crbug.com/458594). |
| 737 base::FieldTrial* trial = | 737 base::FieldTrial* trial = |
| 738 base::FieldTrialList::Find("BackgroundRendererProcesses"); | 738 base::FieldTrialList::Find("BackgroundRendererProcesses"); |
| 739 if (trial && trial->group_name() == "AllowBackgroundModeFromRenderer") | 739 if (trial && trial->group_name() == "AllowBackgroundModeFromRenderer") |
| 740 base::Process::Current().SetProcessBackgrounded(background); | 740 base::Process::Current().SetProcessBackgrounded(background); |
| 741 #endif // OS_WIN | 741 #endif // OS_WIN |
| 742 } | 742 } |
| 743 | 743 |
| 744 } // namespace content | 744 } // namespace content |
| OLD | NEW |