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

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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 bool gpu_observer_registered_; 536 bool gpu_observer_registered_;
538 537
539 // Set if a call to Cleanup is required once the RenderProcessHostImpl is no 538 // Set if a call to Cleanup is required once the RenderProcessHostImpl is no
540 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks. 539 // longer within the RenderProcessHostObserver::RenderProcessExited callbacks.
541 bool delayed_cleanup_needed_; 540 bool delayed_cleanup_needed_;
542 541
543 // Indicates whether RenderProcessHostImpl is currently iterating and calling 542 // Indicates whether RenderProcessHostImpl is currently iterating and calling
544 // through RenderProcessHostObserver::RenderProcessExited. 543 // through RenderProcessHostObserver::RenderProcessExited.
545 bool within_process_died_observer_; 544 bool within_process_died_observer_;
546 545
547 // Forwards power state messages to the renderer process.
548 PowerMonitorMessageBroadcaster power_monitor_broadcaster_;
549
550 scoped_refptr<AudioRendererHost> audio_renderer_host_; 546 scoped_refptr<AudioRendererHost> audio_renderer_host_;
551 547
552 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_; 548 scoped_refptr<AudioInputRendererHost> audio_input_renderer_host_;
553 549
554 #if defined(ENABLE_WEBRTC) 550 #if defined(ENABLE_WEBRTC)
555 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_; 551 scoped_refptr<P2PSocketDispatcherHost> p2p_socket_dispatcher_host_;
556 552
557 // Must be accessed on UI thread. 553 // Must be accessed on UI thread.
558 std::vector<int> aec_dump_consumers_; 554 std::vector<int> aec_dump_consumers_;
559 555
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 instance_weak_factory_; 607 instance_weak_factory_;
612 608
613 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 609 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
614 610
615 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 611 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
616 }; 612 };
617 613
618 } // namespace content 614 } // namespace content
619 615
620 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 616 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698