| 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 | 483 |
| 484 int worker_ref_count_; | 484 int worker_ref_count_; |
| 485 | 485 |
| 486 // Records the time when the process starts surviving for workers for UMA. | 486 // Records the time when the process starts surviving for workers for UMA. |
| 487 base::TimeTicks survive_for_worker_start_time_; | 487 base::TimeTicks survive_for_worker_start_time_; |
| 488 | 488 |
| 489 // Records the maximum # of workers simultaneously hosted in this process | 489 // Records the maximum # of workers simultaneously hosted in this process |
| 490 // for UMA. | 490 // for UMA. |
| 491 int max_worker_count_; | 491 int max_worker_count_; |
| 492 | 492 |
| 493 // Context shared for each permissions::mojom::PermissionService instance | 493 // Context shared for each mojom::PermissionService instance created for this |
| 494 // created for this | |
| 495 // RPH. | 494 // RPH. |
| 496 std::unique_ptr<PermissionServiceContext> permission_service_context_; | 495 std::unique_ptr<PermissionServiceContext> permission_service_context_; |
| 497 | 496 |
| 498 // The memory allocator, if any, in which the renderer will write its metrics. | 497 // The memory allocator, if any, in which the renderer will write its metrics. |
| 499 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; | 498 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; |
| 500 | 499 |
| 501 bool channel_connected_; | 500 bool channel_connected_; |
| 502 bool sent_render_process_ready_; | 501 bool sent_render_process_ready_; |
| 503 | 502 |
| 504 #if defined(OS_ANDROID) | 503 #if defined(OS_ANDROID) |
| 505 // UI thread is the source of sync IPCs and all shutdown signals. | 504 // UI thread is the source of sync IPCs and all shutdown signals. |
| 506 // Therefore a proper shutdown event to unblock the UI thread is not | 505 // Therefore a proper shutdown event to unblock the UI thread is not |
| 507 // possible without massive refactoring shutdown code. | 506 // possible without massive refactoring shutdown code. |
| 508 // Luckily Android never performs a clean shutdown. So explicitly | 507 // Luckily Android never performs a clean shutdown. So explicitly |
| 509 // ignore this problem. | 508 // ignore this problem. |
| 510 base::WaitableEvent never_signaled_; | 509 base::WaitableEvent never_signaled_; |
| 511 #endif | 510 #endif |
| 512 | 511 |
| 513 std::string mojo_channel_token_; | 512 std::string mojo_channel_token_; |
| 514 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 513 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
| 515 | 514 |
| 516 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 515 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 517 | 516 |
| 518 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 517 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 519 }; | 518 }; |
| 520 | 519 |
| 521 } // namespace content | 520 } // namespace content |
| 522 | 521 |
| 523 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 522 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |