| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 public NON_EXPORTED_BASE(mojom::RouteProvider), | 109 public NON_EXPORTED_BASE(mojom::RouteProvider), |
| 110 public NON_EXPORTED_BASE(mojom::AssociatedInterfaceProvider) { | 110 public NON_EXPORTED_BASE(mojom::AssociatedInterfaceProvider) { |
| 111 public: | 111 public: |
| 112 RenderProcessHostImpl(BrowserContext* browser_context, | 112 RenderProcessHostImpl(BrowserContext* browser_context, |
| 113 StoragePartitionImpl* storage_partition_impl, | 113 StoragePartitionImpl* storage_partition_impl, |
| 114 bool is_for_guests_only); | 114 bool is_for_guests_only); |
| 115 ~RenderProcessHostImpl() override; | 115 ~RenderProcessHostImpl() override; |
| 116 | 116 |
| 117 // RenderProcessHost implementation (public portion). | 117 // RenderProcessHost implementation (public portion). |
| 118 bool Init() override; | 118 bool Init() override; |
| 119 void EnableSendQueue() override; |
| 119 int GetNextRoutingID() override; | 120 int GetNextRoutingID() override; |
| 120 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; | 121 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; |
| 121 void RemoveRoute(int32_t routing_id) override; | 122 void RemoveRoute(int32_t routing_id) override; |
| 122 void AddObserver(RenderProcessHostObserver* observer) override; | 123 void AddObserver(RenderProcessHostObserver* observer) override; |
| 123 void RemoveObserver(RenderProcessHostObserver* observer) override; | 124 void RemoveObserver(RenderProcessHostObserver* observer) override; |
| 124 void ShutdownForBadMessage(CrashReportMode crash_report_mode) override; | 125 void ShutdownForBadMessage(CrashReportMode crash_report_mode) override; |
| 125 void WidgetRestored() override; | 126 void WidgetRestored() override; |
| 126 void WidgetHidden() override; | 127 void WidgetHidden() override; |
| 127 int VisibleWidgetCount() const override; | 128 int VisibleWidgetCount() const override; |
| 128 void AudioStateChanged() override; | 129 void AudioStateChanged() override; |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 class ConnectionFilterImpl; | 304 class ConnectionFilterImpl; |
| 304 | 305 |
| 305 size_t worker_ref_count() { | 306 size_t worker_ref_count() { |
| 306 return service_worker_ref_count_ + shared_worker_ref_count_; | 307 return service_worker_ref_count_ + shared_worker_ref_count_; |
| 307 } | 308 } |
| 308 | 309 |
| 309 // Initializes a new IPC::ChannelProxy in |channel_|, which will be connected | 310 // Initializes a new IPC::ChannelProxy in |channel_|, which will be connected |
| 310 // to the next child process launched for this host, if any. | 311 // to the next child process launched for this host, if any. |
| 311 void InitializeChannelProxy(); | 312 void InitializeChannelProxy(); |
| 312 | 313 |
| 314 // Resets |channel_|, removing it from the attachment broker if necessary. |
| 315 // Always call this in lieu of directly resetting |channel_|. |
| 316 void ResetChannelProxy(); |
| 317 |
| 313 // Creates and adds the IO thread message filters. | 318 // Creates and adds the IO thread message filters. |
| 314 void CreateMessageFilters(); | 319 void CreateMessageFilters(); |
| 315 | 320 |
| 316 // Registers Mojo interfaces to be exposed to the renderer. | 321 // Registers Mojo interfaces to be exposed to the renderer. |
| 317 void RegisterMojoInterfaces(); | 322 void RegisterMojoInterfaces(); |
| 318 | 323 |
| 319 // mojom::RouteProvider: | 324 // mojom::RouteProvider: |
| 320 void GetRoute( | 325 void GetRoute( |
| 321 int32_t routing_id, | 326 int32_t routing_id, |
| 322 mojom::AssociatedInterfaceProviderAssociatedRequest request) override; | 327 mojom::AssociatedInterfaceProviderAssociatedRequest request) override; |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 instance_weak_factory_; | 597 instance_weak_factory_; |
| 593 | 598 |
| 594 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 599 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 595 | 600 |
| 596 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 601 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 597 }; | 602 }; |
| 598 | 603 |
| 599 } // namespace content | 604 } // namespace content |
| 600 | 605 |
| 601 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 606 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |