| OLD | NEW |
| 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 11 matching lines...) Expand all Loading... |
| 22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 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/public/browser/render_process_host.h" | 28 #include "content/public/browser/render_process_host.h" |
| 29 #include "ipc/ipc_channel_proxy.h" | 29 #include "ipc/ipc_channel_proxy.h" |
| 30 #include "ipc/ipc_platform_file.h" | 30 #include "ipc/ipc_platform_file.h" |
| 31 #include "mojo/public/cpp/bindings/interface_ptr.h" | 31 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| 32 #include "services/shell/public/interfaces/shell_client.mojom.h" | 32 #include "services/shell/public/interfaces/service.mojom.h" |
| 33 #include "ui/gfx/gpu_memory_buffer.h" | 33 #include "ui/gfx/gpu_memory_buffer.h" |
| 34 #include "ui/gl/gpu_switching_observer.h" | 34 #include "ui/gl/gpu_switching_observer.h" |
| 35 | 35 |
| 36 namespace base { | 36 namespace base { |
| 37 class CommandLine; | 37 class CommandLine; |
| 38 class MessageLoop; | 38 class MessageLoop; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace gfx { | 41 namespace gfx { |
| 42 class Size; | 42 class Size; |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 #endif | 364 #endif |
| 365 | 365 |
| 366 static void OnMojoError( | 366 static void OnMojoError( |
| 367 base::WeakPtr<RenderProcessHostImpl> process, | 367 base::WeakPtr<RenderProcessHostImpl> process, |
| 368 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 368 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 369 const std::string& error); | 369 const std::string& error); |
| 370 | 370 |
| 371 std::string child_token_; | 371 std::string child_token_; |
| 372 | 372 |
| 373 std::unique_ptr<MojoChildConnection> mojo_child_connection_; | 373 std::unique_ptr<MojoChildConnection> mojo_child_connection_; |
| 374 shell::mojom::ShellClientPtr test_shell_client_; | 374 shell::mojom::ServicePtr test_service_; |
| 375 | 375 |
| 376 // The registered IPC listener objects. When this list is empty, we should | 376 // The registered IPC listener objects. When this list is empty, we should |
| 377 // delete ourselves. | 377 // delete ourselves. |
| 378 IDMap<IPC::Listener> listeners_; | 378 IDMap<IPC::Listener> listeners_; |
| 379 | 379 |
| 380 // The count of currently visible widgets. Since the host can be a container | 380 // The count of currently visible widgets. Since the host can be a container |
| 381 // for multiple widgets, it uses this count to determine when it should be | 381 // for multiple widgets, it uses this count to determine when it should be |
| 382 // backgrounded. | 382 // backgrounded. |
| 383 int32_t visible_widgets_; | 383 int32_t visible_widgets_; |
| 384 | 384 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 522 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 523 | 523 |
| 524 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 524 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 525 | 525 |
| 526 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 526 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 527 }; | 527 }; |
| 528 | 528 |
| 529 } // namespace content | 529 } // namespace content |
| 530 | 530 |
| 531 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 531 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |