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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2041033003: clang-tidy WaitableEvent refactor (Android side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0_windows
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 gpu_observer_registered_(false), 573 gpu_observer_registered_(false),
574 delayed_cleanup_needed_(false), 574 delayed_cleanup_needed_(false),
575 within_process_died_observer_(false), 575 within_process_died_observer_(false),
576 power_monitor_broadcaster_(this), 576 power_monitor_broadcaster_(this),
577 worker_ref_count_(0), 577 worker_ref_count_(0),
578 max_worker_count_(0), 578 max_worker_count_(0),
579 permission_service_context_(new PermissionServiceContext(this)), 579 permission_service_context_(new PermissionServiceContext(this)),
580 channel_connected_(false), 580 channel_connected_(false),
581 sent_render_process_ready_(false), 581 sent_render_process_ready_(false),
582 #if defined(OS_ANDROID) 582 #if defined(OS_ANDROID)
583 never_signaled_(true, false), 583 never_signaled_(base::WaitableEvent::ResetPolicy::MANUAL,
584 base::WaitableEvent::InitialState::NOT_SIGNALED),
584 #endif 585 #endif
585 weak_factory_(this) { 586 weak_factory_(this) {
586 widget_helper_ = new RenderWidgetHelper(); 587 widget_helper_ = new RenderWidgetHelper();
587 588
588 ChildProcessSecurityPolicyImpl::GetInstance()->Add(GetID()); 589 ChildProcessSecurityPolicyImpl::GetInstance()->Add(GetID());
589 590
590 CHECK(!BrowserMainRunner::ExitedMainMessageLoop()); 591 CHECK(!BrowserMainRunner::ExitedMainMessageLoop());
591 RegisterHost(GetID(), this); 592 RegisterHost(GetID(), this);
592 g_all_hosts.Get().set_check_on_null_data(true); 593 g_all_hosts.Get().set_check_on_null_data(true);
593 // Initialize |child_process_activity_time_| to a reasonable value. 594 // Initialize |child_process_activity_time_| to a reasonable value.
(...skipping 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after
2797 2798
2798 // Skip widgets in other processes. 2799 // Skip widgets in other processes.
2799 if (rvh->GetProcess()->GetID() != GetID()) 2800 if (rvh->GetProcess()->GetID() != GetID())
2800 continue; 2801 continue;
2801 2802
2802 rvh->OnWebkitPreferencesChanged(); 2803 rvh->OnWebkitPreferencesChanged();
2803 } 2804 }
2804 } 2805 }
2805 2806
2806 } // namespace content 2807 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/media/android/browser_surface_view_manager.cc ('k') | content/public/test/nested_message_pump_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698