| 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 } | 416 } |
| 417 | 417 |
| 418 std::string child_token_; | 418 std::string child_token_; |
| 419 | 419 |
| 420 std::unique_ptr<ChildConnection> child_connection_; | 420 std::unique_ptr<ChildConnection> child_connection_; |
| 421 int connection_filter_id_ = | 421 int connection_filter_id_ = |
| 422 ServiceManagerConnection::kInvalidConnectionFilterId; | 422 ServiceManagerConnection::kInvalidConnectionFilterId; |
| 423 scoped_refptr<ConnectionFilterController> connection_filter_controller_; | 423 scoped_refptr<ConnectionFilterController> connection_filter_controller_; |
| 424 service_manager::mojom::ServicePtr test_service_; | 424 service_manager::mojom::ServicePtr test_service_; |
| 425 | 425 |
| 426 // The number of service workers running in this process. |
| 426 size_t service_worker_ref_count_; | 427 size_t service_worker_ref_count_; |
| 428 // See comments for IncrementSharedWorkerRefCount() and |
| 429 // DecrementSharedWorkerRefCount(). This is more like a boolean flag and not |
| 430 // actually the number of shared workers running in this process. |
| 427 size_t shared_worker_ref_count_; | 431 size_t shared_worker_ref_count_; |
| 428 | 432 |
| 429 // Set in ForceReleaseWorkerRefCounts. When true, worker ref counts must no | 433 // Set in ForceReleaseWorkerRefCounts. When true, worker ref counts must no |
| 430 // longer be modified. | 434 // longer be modified. |
| 431 bool is_worker_ref_count_disabled_; | 435 bool is_worker_ref_count_disabled_; |
| 432 | 436 |
| 433 // The registered IPC listener objects. When this list is empty, we should | 437 // The registered IPC listener objects. When this list is empty, we should |
| 434 // delete ourselves. | 438 // delete ourselves. |
| 435 IDMap<IPC::Listener*> listeners_; | 439 IDMap<IPC::Listener*> listeners_; |
| 436 | 440 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 | 550 |
| 547 // Forwards messages between WebRTCInternals in the browser process | 551 // Forwards messages between WebRTCInternals in the browser process |
| 548 // and PeerConnectionTracker in the renderer process. | 552 // and PeerConnectionTracker in the renderer process. |
| 549 // It holds a raw pointer to webrtc_eventlog_host_, and therefore should be | 553 // It holds a raw pointer to webrtc_eventlog_host_, and therefore should be |
| 550 // defined below it so it is destructed first. | 554 // defined below it so it is destructed first. |
| 551 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_; | 555 scoped_refptr<PeerConnectionTrackerHost> peer_connection_tracker_host_; |
| 552 | 556 |
| 553 // Records the time when the process starts surviving for workers for UMA. | 557 // Records the time when the process starts surviving for workers for UMA. |
| 554 base::TimeTicks survive_for_worker_start_time_; | 558 base::TimeTicks survive_for_worker_start_time_; |
| 555 | 559 |
| 556 // Records the maximum # of workers simultaneously hosted in this process | |
| 557 // for UMA. | |
| 558 size_t max_worker_count_; | |
| 559 | |
| 560 // Context shared for each mojom::PermissionService instance created for this | 560 // Context shared for each mojom::PermissionService instance created for this |
| 561 // RPH. | 561 // RPH. |
| 562 std::unique_ptr<PermissionServiceContext> permission_service_context_; | 562 std::unique_ptr<PermissionServiceContext> permission_service_context_; |
| 563 | 563 |
| 564 // The memory allocator, if any, in which the renderer will write its metrics. | 564 // The memory allocator, if any, in which the renderer will write its metrics. |
| 565 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; | 565 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; |
| 566 | 566 |
| 567 bool channel_connected_; | 567 bool channel_connected_; |
| 568 bool sent_render_process_ready_; | 568 bool sent_render_process_ready_; |
| 569 | 569 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 588 instance_weak_factory_; | 588 instance_weak_factory_; |
| 589 | 589 |
| 590 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 590 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 591 | 591 |
| 592 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 592 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 593 }; | 593 }; |
| 594 | 594 |
| 595 } // namespace content | 595 } // namespace content |
| 596 | 596 |
| 597 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 597 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |