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

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

Issue 2433203003: Mojoify PoweMonitorMessageBroadcaster IPC from browser to child process (Closed)
Patch Set: code rebase Created 4 years, 1 month 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <queue> 13 #include <queue>
14 #include <string> 14 #include <string>
15 15
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "base/process/process.h" 19 #include "base/process/process.h"
20 #include "base/single_thread_task_runner.h" 20 #include "base/single_thread_task_runner.h"
21 #include "base/synchronization/waitable_event.h" 21 #include "base/synchronization/waitable_event.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/browser/child_process_launcher.h" 23 #include "content/browser/child_process_launcher.h"
24 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 24 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
25 #include "content/browser/power_monitor_message_broadcaster.h"
26 #include "content/browser/webrtc/webrtc_eventlog_host.h" 25 #include "content/browser/webrtc/webrtc_eventlog_host.h"
27 #include "content/common/associated_interfaces.mojom.h" 26 #include "content/common/associated_interfaces.mojom.h"
28 #include "content/common/content_export.h" 27 #include "content/common/content_export.h"
29 #include "content/common/renderer.mojom.h" 28 #include "content/common/renderer.mojom.h"
30 #include "content/public/browser/render_process_host.h" 29 #include "content/public/browser/render_process_host.h"
31 #include "content/public/common/service_manager_connection.h" 30 #include "content/public/common/service_manager_connection.h"
32 #include "ipc/ipc_channel_proxy.h" 31 #include "ipc/ipc_channel_proxy.h"
33 #include "ipc/ipc_platform_file.h" 32 #include "ipc/ipc_platform_file.h"
34 #include "mojo/public/cpp/bindings/associated_binding.h" 33 #include "mojo/public/cpp/bindings/associated_binding.h"
35 #include "mojo/public/cpp/bindings/associated_binding_set.h" 34 #include "mojo/public/cpp/bindings/associated_binding_set.h"
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 bool gpu_observer_registered_; 537 bool gpu_observer_registered_;
539 538
540 // Set if a call to Cleanup is required once the RenderProcessHostImpl is no 539 // Set if a call to Cleanup is required once the RenderProcessHostImpl is no
541 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks. 540 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks.
542 bool delayed_cleanup_needed_; 541 bool delayed_cleanup_needed_;
543 542
544 // Indicates whether RenderProcessHostImpl is currently iterating and calling 543 // Indicates whether RenderProcessHostImpl is currently iterating and calling
545 // through RenderProcessHostObserver::RenderProcessExited. 544 // through RenderProcessHostObserver::RenderProcessExited.
546 bool within_process_died_observer_; 545 bool within_process_died_observer_;
547 546
548 // Forwards power state messages to the renderer process.
549 PowerMonitorMessageBroadcaster power_monitor_broadcaster_;
550
551 scoped_refptr<AudioRendererHost> audio_renderer_host_; 547 scoped_refptr<AudioRendererHost> audio_renderer_host_;
552 548
553 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; 549 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_;
554 550
555 #if defined(ENABLE_WEBRTC) 551 #if defined(ENABLE_WEBRTC)
556 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; 552 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_;
557 553
558 // Must be accessed on UI thread. 554 // Must be accessed on UI thread.
559 std::vector<int> aec_dump_consumers_; 555 std::vector<int> aec_dump_consumers_;
560 556
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 instance_weak_factory_; 602 instance_weak_factory_;
607 603
608 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 604 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
609 605
610 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 606 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
611 }; 607 };
612 608
613 } // namespace content 609 } // namespace content
614 610
615 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 611 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698