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 mojom::PermissionService instance created for this | 493 // Context shared for each permissions::mojom::PermissionService instance |
| 494 // created for this |
494 // RPH. | 495 // RPH. |
495 std::unique_ptr<PermissionServiceContext> permission_service_context_; | 496 std::unique_ptr<PermissionServiceContext> permission_service_context_; |
496 | 497 |
497 // The memory allocator, if any, in which the renderer will write its metrics. | 498 // The memory allocator, if any, in which the renderer will write its metrics. |
498 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; | 499 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; |
499 | 500 |
500 bool channel_connected_; | 501 bool channel_connected_; |
501 bool sent_render_process_ready_; | 502 bool sent_render_process_ready_; |
502 | 503 |
503 #if defined(OS_ANDROID) | 504 #if defined(OS_ANDROID) |
504 // UI thread is the source of sync IPCs and all shutdown signals. | 505 // UI thread is the source of sync IPCs and all shutdown signals. |
505 // Therefore a proper shutdown event to unblock the UI thread is not | 506 // Therefore a proper shutdown event to unblock the UI thread is not |
506 // possible without massive refactoring shutdown code. | 507 // possible without massive refactoring shutdown code. |
507 // Luckily Android never performs a clean shutdown. So explicitly | 508 // Luckily Android never performs a clean shutdown. So explicitly |
508 // ignore this problem. | 509 // ignore this problem. |
509 base::WaitableEvent never_signaled_; | 510 base::WaitableEvent never_signaled_; |
510 #endif | 511 #endif |
511 | 512 |
512 std::string mojo_channel_token_; | 513 std::string mojo_channel_token_; |
513 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; | 514 mojo::ScopedMessagePipeHandle in_process_renderer_handle_; |
514 | 515 |
515 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 516 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
516 | 517 |
517 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 518 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
518 }; | 519 }; |
519 | 520 |
520 } // namespace content | 521 } // namespace content |
521 | 522 |
522 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 523 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |