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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 namespace IPC { | 52 namespace IPC { |
53 class ChannelMojoHost; | 53 class ChannelMojoHost; |
54 } | 54 } |
55 | 55 |
56 namespace content { | 56 namespace content { |
57 class AudioInputRendererHost; | 57 class AudioInputRendererHost; |
58 class AudioRendererHost; | 58 class AudioRendererHost; |
59 class BrowserCdmManager; | 59 class BrowserCdmManager; |
60 class BrowserDemuxerAndroid; | 60 class BrowserDemuxerAndroid; |
| 61 class DatabaseFactoryImpl; |
| 62 class IndexedDBDispatcherHost; |
61 class InProcessChildThreadParams; | 63 class InProcessChildThreadParams; |
62 class MessagePortMessageFilter; | 64 class MessagePortMessageFilter; |
63 class MojoChildConnection; | 65 class MojoChildConnection; |
64 class NotificationMessageFilter; | 66 class NotificationMessageFilter; |
65 #if defined(ENABLE_WEBRTC) | 67 #if defined(ENABLE_WEBRTC) |
66 class P2PSocketDispatcherHost; | 68 class P2PSocketDispatcherHost; |
67 #endif | 69 #endif |
68 class PermissionServiceContext; | 70 class PermissionServiceContext; |
69 class PeerConnectionTrackerHost; | 71 class PeerConnectionTrackerHost; |
70 class RendererMainThread; | 72 class RendererMainThread; |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 // for UMA. | 556 // for UMA. |
555 size_t max_worker_count_; | 557 size_t max_worker_count_; |
556 | 558 |
557 // Context shared for each mojom::PermissionService instance created for this | 559 // Context shared for each mojom::PermissionService instance created for this |
558 // RPH. | 560 // RPH. |
559 std::unique_ptr<PermissionServiceContext> permission_service_context_; | 561 std::unique_ptr<PermissionServiceContext> permission_service_context_; |
560 | 562 |
561 // The memory allocator, if any, in which the renderer will write its metrics. | 563 // The memory allocator, if any, in which the renderer will write its metrics. |
562 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; | 564 std::unique_ptr<base::SharedPersistentMemoryAllocator> metrics_allocator_; |
563 | 565 |
| 566 scoped_refptr<IndexedDBDispatcherHost> idb_dispatcher_host_; |
| 567 std::unique_ptr<DatabaseFactoryImpl> idb_database_factory_; |
| 568 |
564 bool channel_connected_; | 569 bool channel_connected_; |
565 bool sent_render_process_ready_; | 570 bool sent_render_process_ready_; |
566 | 571 |
567 #if defined(OS_ANDROID) | 572 #if defined(OS_ANDROID) |
568 // UI thread is the source of sync IPCs and all shutdown signals. | 573 // UI thread is the source of sync IPCs and all shutdown signals. |
569 // Therefore a proper shutdown event to unblock the UI thread is not | 574 // Therefore a proper shutdown event to unblock the UI thread is not |
570 // possible without massive refactoring shutdown code. | 575 // possible without massive refactoring shutdown code. |
571 // Luckily Android never performs a clean shutdown. So explicitly | 576 // Luckily Android never performs a clean shutdown. So explicitly |
572 // ignore this problem. | 577 // ignore this problem. |
573 base::WaitableEvent never_signaled_; | 578 base::WaitableEvent never_signaled_; |
574 #endif | 579 #endif |
575 | 580 |
576 scoped_refptr<ResourceMessageFilter> resource_message_filter_; | 581 scoped_refptr<ResourceMessageFilter> resource_message_filter_; |
577 | 582 |
578 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend | 583 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend |
579 // WeakPtrs which are invalidated any time the RPHI is recycled. | 584 // WeakPtrs which are invalidated any time the RPHI is recycled. |
580 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>> | 585 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>> |
581 instance_weak_factory_; | 586 instance_weak_factory_; |
582 | 587 |
583 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 588 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
584 | 589 |
585 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 590 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
586 }; | 591 }; |
587 | 592 |
588 } // namespace content | 593 } // namespace content |
589 | 594 |
590 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 595 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |