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

Side by Side Diff: content/child/child_thread_impl.cc

Issue 1936093003: Fix gpu_video_decode_accelerator include order by renaming enum with X11 name collision (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename Status->ThreadStatus Created 4 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 #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 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 667
668 #if defined(IPC_MESSAGE_LOG_ENABLED) 668 #if defined(IPC_MESSAGE_LOG_ENABLED)
669 void ChildThreadImpl::OnSetIPCLoggingEnabled(bool enable) { 669 void ChildThreadImpl::OnSetIPCLoggingEnabled(bool enable) {
670 if (enable) 670 if (enable)
671 IPC::Logging::GetInstance()->Enable(); 671 IPC::Logging::GetInstance()->Enable();
672 else 672 else
673 IPC::Logging::GetInstance()->Disable(); 673 IPC::Logging::GetInstance()->Disable();
674 } 674 }
675 #endif // IPC_MESSAGE_LOG_ENABLED 675 #endif // IPC_MESSAGE_LOG_ENABLED
676 676
677 void ChildThreadImpl::OnSetProfilerStatus(ThreadData::Status status) { 677 void ChildThreadImpl::OnSetProfilerStatus(ThreadData::ThreadStatus status) {
678 ThreadData::InitializeAndSetTrackingStatus(status); 678 ThreadData::InitializeAndSetTrackingStatus(status);
679 } 679 }
680 680
681 void ChildThreadImpl::OnGetChildProfilerData(int sequence_number, 681 void ChildThreadImpl::OnGetChildProfilerData(int sequence_number,
682 int current_profiling_phase) { 682 int current_profiling_phase) {
683 tracked_objects::ProcessDataSnapshot process_data; 683 tracked_objects::ProcessDataSnapshot process_data;
684 ThreadData::Snapshot(current_profiling_phase, &process_data); 684 ThreadData::Snapshot(current_profiling_phase, &process_data);
685 685
686 Send( 686 Send(
687 new ChildProcessHostMsg_ChildProfilerData(sequence_number, process_data)); 687 new ChildProcessHostMsg_ChildProfilerData(sequence_number, process_data));
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 void ChildThreadImpl::EnsureConnected() { 721 void ChildThreadImpl::EnsureConnected() {
722 VLOG(0) << "ChildThreadImpl::EnsureConnected()"; 722 VLOG(0) << "ChildThreadImpl::EnsureConnected()";
723 base::Process::Current().Terminate(0, false); 723 base::Process::Current().Terminate(0, false);
724 } 724 }
725 725
726 bool ChildThreadImpl::IsInBrowserProcess() const { 726 bool ChildThreadImpl::IsInBrowserProcess() const {
727 return browser_process_io_runner_; 727 return browser_process_io_runner_;
728 } 728 }
729 729
730 } // namespace content 730 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698