Chromium Code Reviews| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 public NON_EXPORTED_BASE(mojom::RouteProvider), | 113 public NON_EXPORTED_BASE(mojom::RouteProvider), |
| 114 public NON_EXPORTED_BASE(mojom::AssociatedInterfaceProvider) { | 114 public NON_EXPORTED_BASE(mojom::AssociatedInterfaceProvider) { |
| 115 public: | 115 public: |
| 116 RenderProcessHostImpl(BrowserContext* browser_context, | 116 RenderProcessHostImpl(BrowserContext* browser_context, |
| 117 StoragePartitionImpl* storage_partition_impl, | 117 StoragePartitionImpl* storage_partition_impl, |
| 118 bool is_for_guests_only); | 118 bool is_for_guests_only); |
| 119 ~RenderProcessHostImpl() override; | 119 ~RenderProcessHostImpl() override; |
| 120 | 120 |
| 121 // RenderProcessHost implementation (public portion). | 121 // RenderProcessHost implementation (public portion). |
| 122 bool Init() override; | 122 bool Init() override; |
| 123 void EnsureHasChannel() override; | |
| 123 int GetNextRoutingID() override; | 124 int GetNextRoutingID() override; |
| 124 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; | 125 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; |
| 125 void RemoveRoute(int32_t routing_id) override; | 126 void RemoveRoute(int32_t routing_id) override; |
| 126 void AddObserver(RenderProcessHostObserver* observer) override; | 127 void AddObserver(RenderProcessHostObserver* observer) override; |
| 127 void RemoveObserver(RenderProcessHostObserver* observer) override; | 128 void RemoveObserver(RenderProcessHostObserver* observer) override; |
| 128 void ShutdownForBadMessage(CrashReportMode crash_report_mode) override; | 129 void ShutdownForBadMessage(CrashReportMode crash_report_mode) override; |
| 129 void WidgetRestored() override; | 130 void WidgetRestored() override; |
| 130 void WidgetHidden() override; | 131 void WidgetHidden() override; |
| 131 int VisibleWidgetCount() const override; | 132 int VisibleWidgetCount() const override; |
| 132 void AudioStateChanged() override; | 133 void AudioStateChanged() override; |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 313 class ConnectionFilterImpl; | 314 class ConnectionFilterImpl; |
| 314 | 315 |
| 315 size_t worker_ref_count() { | 316 size_t worker_ref_count() { |
| 316 return service_worker_ref_count_ + shared_worker_ref_count_; | 317 return service_worker_ref_count_ + shared_worker_ref_count_; |
| 317 } | 318 } |
| 318 | 319 |
| 319 // Initializes a new IPC::ChannelProxy in |channel_|, which will be connected | 320 // Initializes a new IPC::ChannelProxy in |channel_|, which will be connected |
| 320 // to the next child process launched for this host, if any. | 321 // to the next child process launched for this host, if any. |
| 321 void InitializeChannelProxy(); | 322 void InitializeChannelProxy(); |
| 322 | 323 |
| 324 void ResetChannelProxy(); | |
|
jam
2016/10/25 00:22:55
nit: document
Ken Rockot(use gerrit already)
2016/10/25 01:43:22
Done
| |
| 325 | |
| 323 // Creates and adds the IO thread message filters. | 326 // Creates and adds the IO thread message filters. |
| 324 void CreateMessageFilters(); | 327 void CreateMessageFilters(); |
| 325 | 328 |
| 326 // Registers Mojo interfaces to be exposed to the renderer. | 329 // Registers Mojo interfaces to be exposed to the renderer. |
| 327 void RegisterMojoInterfaces(); | 330 void RegisterMojoInterfaces(); |
| 328 | 331 |
| 329 // mojom::RouteProvider: | 332 // mojom::RouteProvider: |
| 330 void GetRoute( | 333 void GetRoute( |
| 331 int32_t routing_id, | 334 int32_t routing_id, |
| 332 mojom::AssociatedInterfaceProviderAssociatedRequest request) override; | 335 mojom::AssociatedInterfaceProviderAssociatedRequest request) override; |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 606 instance_weak_factory_; | 609 instance_weak_factory_; |
| 607 | 610 |
| 608 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 611 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 609 | 612 |
| 610 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 613 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 611 }; | 614 }; |
| 612 | 615 |
| 613 } // namespace content | 616 } // namespace content |
| 614 | 617 |
| 615 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 618 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |