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

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

Issue 2107143003: Revert of Make RenderProcessHost/RenderThread use MojoChildConnection/MojoShellConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rph2
Patch Set: Created 4 years, 5 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 #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
(...skipping 12 matching lines...) Expand all
23 #include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h" 23 #include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h"
24 #include "content/browser/child_process_launcher.h" 24 #include "content/browser/child_process_launcher.h"
25 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 25 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
26 #include "content/browser/power_monitor_message_broadcaster.h" 26 #include "content/browser/power_monitor_message_broadcaster.h"
27 #include "content/common/content_export.h" 27 #include "content/common/content_export.h"
28 #include "content/common/mojo/service_registry_impl.h" 28 #include "content/common/mojo/service_registry_impl.h"
29 #include "content/public/browser/render_process_host.h" 29 #include "content/public/browser/render_process_host.h"
30 #include "ipc/ipc_channel_proxy.h" 30 #include "ipc/ipc_channel_proxy.h"
31 #include "ipc/ipc_platform_file.h" 31 #include "ipc/ipc_platform_file.h"
32 #include "mojo/public/cpp/bindings/interface_ptr.h" 32 #include "mojo/public/cpp/bindings/interface_ptr.h"
33 #include "services/shell/public/interfaces/shell_client.mojom.h"
34 #include "ui/gfx/gpu_memory_buffer.h" 33 #include "ui/gfx/gpu_memory_buffer.h"
35 #include "ui/gl/gpu_switching_observer.h" 34 #include "ui/gl/gpu_switching_observer.h"
36 35
37 namespace base { 36 namespace base {
38 class CommandLine; 37 class CommandLine;
39 class MessageLoop; 38 class MessageLoop;
40 } 39 }
41 40
42 namespace gfx { 41 namespace gfx {
43 class Size; 42 class Size;
44 } 43 }
45 44
46 namespace IPC { 45 namespace IPC {
47 class ChannelMojoHost; 46 class ChannelMojoHost;
48 } 47 }
49 48
50 namespace content { 49 namespace content {
51 class AudioInputRendererHost; 50 class AudioInputRendererHost;
52 class AudioRendererHost; 51 class AudioRendererHost;
53 class BrowserCdmManager; 52 class BrowserCdmManager;
54 class BrowserDemuxerAndroid; 53 class BrowserDemuxerAndroid;
55 class InProcessChildThreadParams; 54 class InProcessChildThreadParams;
56 class MessagePortMessageFilter; 55 class MessagePortMessageFilter;
56 class MojoApplicationHost;
57 class MojoChildConnection; 57 class MojoChildConnection;
58 class NotificationMessageFilter; 58 class NotificationMessageFilter;
59 #if defined(ENABLE_WEBRTC) 59 #if defined(ENABLE_WEBRTC)
60 class P2PSocketDispatcherHost; 60 class P2PSocketDispatcherHost;
61 #endif 61 #endif
62 class PermissionServiceContext; 62 class PermissionServiceContext;
63 class PeerConnectionTrackerHost; 63 class PeerConnectionTrackerHost;
64 class RendererMainThread; 64 class RendererMainThread;
65 class RenderWidgetHelper; 65 class RenderWidgetHelper;
66 class RenderWidgetHost; 66 class RenderWidgetHost;
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 #endif 365 #endif
366 366
367 static void OnMojoError( 367 static void OnMojoError(
368 base::WeakPtr<RenderProcessHostImpl> process, 368 base::WeakPtr<RenderProcessHostImpl> process,
369 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 369 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
370 const std::string& error); 370 const std::string& error);
371 371
372 std::string child_token_; 372 std::string child_token_;
373 373
374 std::unique_ptr<MojoChildConnection> mojo_child_connection_; 374 std::unique_ptr<MojoChildConnection> mojo_child_connection_;
375 shell::mojom::ShellClientPtr test_shell_client_; 375 std::unique_ptr<MojoApplicationHost> mojo_application_host_;
376 376
377 // The registered IPC listener objects. When this list is empty, we should 377 // The registered IPC listener objects. When this list is empty, we should
378 // delete ourselves. 378 // delete ourselves.
379 IDMap<IPC::Listener> listeners_; 379 IDMap<IPC::Listener> listeners_;
380 380
381 // The count of currently visible widgets. Since the host can be a container 381 // The count of currently visible widgets. Since the host can be a container
382 // for multiple widgets, it uses this count to determine when it should be 382 // for multiple widgets, it uses this count to determine when it should be
383 // backgrounded. 383 // backgrounded.
384 int32_t visible_widgets_; 384 int32_t visible_widgets_;
385 385
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; 523 mojo::ScopedMessagePipeHandle in_process_renderer_handle_;
524 524
525 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 525 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
526 526
527 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 527 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
528 }; 528 };
529 529
530 } // namespace content 530 } // namespace content
531 531
532 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 532 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/mojo/mojo_child_connection.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698