| 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 15 matching lines...) Expand all Loading... |
| 26 #include "content/browser/webrtc/webrtc_eventlog_host.h" | 26 #include "content/browser/webrtc/webrtc_eventlog_host.h" |
| 27 #include "content/common/associated_interfaces.mojom.h" | 27 #include "content/common/associated_interfaces.mojom.h" |
| 28 #include "content/common/content_export.h" | 28 #include "content/common/content_export.h" |
| 29 #include "content/common/indexed_db/indexed_db.mojom.h" | 29 #include "content/common/indexed_db/indexed_db.mojom.h" |
| 30 #include "content/common/renderer.mojom.h" | 30 #include "content/common/renderer.mojom.h" |
| 31 #include "content/public/browser/render_process_host.h" | 31 #include "content/public/browser/render_process_host.h" |
| 32 #include "content/public/common/service_manager_connection.h" | 32 #include "content/public/common/service_manager_connection.h" |
| 33 #include "ipc/ipc_channel_proxy.h" | 33 #include "ipc/ipc_channel_proxy.h" |
| 34 #include "ipc/ipc_platform_file.h" | 34 #include "ipc/ipc_platform_file.h" |
| 35 #include "media/media_features.h" | 35 #include "media/media_features.h" |
| 36 #include "mojo/edk/embedder/pending_process_connection.h" |
| 36 #include "mojo/public/cpp/bindings/associated_binding.h" | 37 #include "mojo/public/cpp/bindings/associated_binding.h" |
| 37 #include "mojo/public/cpp/bindings/associated_binding_set.h" | 38 #include "mojo/public/cpp/bindings/associated_binding_set.h" |
| 38 #include "mojo/public/cpp/bindings/interface_ptr.h" | 39 #include "mojo/public/cpp/bindings/interface_ptr.h" |
| 39 #include "services/service_manager/public/cpp/interface_registry.h" | 40 #include "services/service_manager/public/cpp/interface_registry.h" |
| 40 #include "services/service_manager/public/interfaces/service.mojom.h" | 41 #include "services/service_manager/public/interfaces/service.mojom.h" |
| 41 #include "services/ui/public/interfaces/gpu.mojom.h" | 42 #include "services/ui/public/interfaces/gpu.mojom.h" |
| 42 #include "ui/gfx/gpu_memory_buffer.h" | 43 #include "ui/gfx/gpu_memory_buffer.h" |
| 43 #include "ui/gl/gpu_switching_observer.h" | 44 #include "ui/gl/gpu_switching_observer.h" |
| 44 | 45 |
| 45 #if defined(OS_ANDROID) | 46 #if defined(OS_ANDROID) |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 // method will never run beyond the next invocation of Cleanup(). | 417 // method will never run beyond the next invocation of Cleanup(). |
| 417 template <typename CallbackType> | 418 template <typename CallbackType> |
| 418 void AddUIThreadInterface(service_manager::InterfaceRegistry* registry, | 419 void AddUIThreadInterface(service_manager::InterfaceRegistry* registry, |
| 419 const CallbackType& callback) { | 420 const CallbackType& callback) { |
| 420 registry->AddInterface( | 421 registry->AddInterface( |
| 421 base::Bind(&InterfaceGetter<CallbackType>::GetInterfaceOnUIThread, | 422 base::Bind(&InterfaceGetter<CallbackType>::GetInterfaceOnUIThread, |
| 422 instance_weak_factory_->GetWeakPtr(), callback), | 423 instance_weak_factory_->GetWeakPtr(), callback), |
| 423 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI)); | 424 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI)); |
| 424 } | 425 } |
| 425 | 426 |
| 426 std::string child_token_; | 427 std::unique_ptr<mojo::edk::PendingProcessConnection> pending_connection_; |
| 427 | 428 |
| 428 std::unique_ptr<ChildConnection> child_connection_; | 429 std::unique_ptr<ChildConnection> child_connection_; |
| 429 int connection_filter_id_ = | 430 int connection_filter_id_ = |
| 430 ServiceManagerConnection::kInvalidConnectionFilterId; | 431 ServiceManagerConnection::kInvalidConnectionFilterId; |
| 431 scoped_refptr<ConnectionFilterController> connection_filter_controller_; | 432 scoped_refptr<ConnectionFilterController> connection_filter_controller_; |
| 432 service_manager::mojom::ServicePtr test_service_; | 433 service_manager::mojom::ServicePtr test_service_; |
| 433 | 434 |
| 434 // The number of service workers running in this process. | 435 // The number of service workers running in this process. |
| 435 size_t service_worker_ref_count_; | 436 size_t service_worker_ref_count_; |
| 436 // See comments for IncrementSharedWorkerRefCount() and | 437 // See comments for IncrementSharedWorkerRefCount() and |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 instance_weak_factory_; | 606 instance_weak_factory_; |
| 606 | 607 |
| 607 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 608 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 608 | 609 |
| 609 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 610 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 610 }; | 611 }; |
| 611 | 612 |
| 612 } // namespace content | 613 } // namespace content |
| 613 | 614 |
| 614 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 615 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |