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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 void SetIsNeverSuitableForReuse() override; | 179 void SetIsNeverSuitableForReuse() override; |
180 bool MayReuseHost() override; | 180 bool MayReuseHost() override; |
181 | 181 |
182 mojom::RouteProvider* GetRemoteRouteProvider(); | 182 mojom::RouteProvider* GetRemoteRouteProvider(); |
183 | 183 |
184 // IPC::Sender via RenderProcessHost. | 184 // IPC::Sender via RenderProcessHost. |
185 bool Send(IPC::Message* msg) override; | 185 bool Send(IPC::Message* msg) override; |
186 | 186 |
187 // IPC::Listener via RenderProcessHost. | 187 // IPC::Listener via RenderProcessHost. |
188 bool OnMessageReceived(const IPC::Message& msg) override; | 188 bool OnMessageReceived(const IPC::Message& msg) override; |
| 189 void OnAssociatedInterfaceRequest( |
| 190 const std::string& interface_name, |
| 191 mojo::ScopedInterfaceEndpointHandle handle) override; |
189 void OnChannelConnected(int32_t peer_pid) override; | 192 void OnChannelConnected(int32_t peer_pid) override; |
190 void OnChannelError() override; | 193 void OnChannelError() override; |
191 void OnBadMessageReceived(const IPC::Message& message) override; | 194 void OnBadMessageReceived(const IPC::Message& message) override; |
192 | 195 |
193 // ChildProcessLauncher::Client implementation. | 196 // ChildProcessLauncher::Client implementation. |
194 void OnProcessLaunched() override; | 197 void OnProcessLaunched() override; |
195 void OnProcessLaunchFailed(int error_code) override; | 198 void OnProcessLaunchFailed(int error_code) override; |
196 | 199 |
197 scoped_refptr<AudioRendererHost> audio_renderer_host() const; | 200 scoped_refptr<AudioRendererHost> audio_renderer_host() const; |
198 | 201 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 367 |
365 // Creates a PersistentMemoryAllocator and shares it with the renderer | 368 // Creates a PersistentMemoryAllocator and shares it with the renderer |
366 // process for it to store histograms from that process. The allocator is | 369 // process for it to store histograms from that process. The allocator is |
367 // available for extraction by a SubprocesMetricsProvider in order to | 370 // available for extraction by a SubprocesMetricsProvider in order to |
368 // report those histograms to UMA. | 371 // report those histograms to UMA. |
369 void CreateSharedRendererHistogramAllocator(); | 372 void CreateSharedRendererHistogramAllocator(); |
370 | 373 |
371 // Handle termination of our process. | 374 // Handle termination of our process. |
372 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); | 375 void ProcessDied(bool already_dead, RendererClosedDetails* known_details); |
373 | 376 |
374 void OnRouteProviderRequest(mojom::RouteProviderAssociatedRequest request); | |
375 | |
376 // GpuSwitchingObserver implementation. | 377 // GpuSwitchingObserver implementation. |
377 void OnGpuSwitched() override; | 378 void OnGpuSwitched() override; |
378 | 379 |
379 #if BUILDFLAG(ENABLE_WEBRTC) | 380 #if BUILDFLAG(ENABLE_WEBRTC) |
380 void OnRegisterAecDumpConsumer(int id); | 381 void OnRegisterAecDumpConsumer(int id); |
381 void OnUnregisterAecDumpConsumer(int id); | 382 void OnUnregisterAecDumpConsumer(int id); |
382 void RegisterAecDumpConsumerOnUIThread(int id); | 383 void RegisterAecDumpConsumerOnUIThread(int id); |
383 void UnregisterAecDumpConsumerOnUIThread(int id); | 384 void UnregisterAecDumpConsumerOnUIThread(int id); |
384 void EnableAecDumpForId(const base::FilePath& file, int id); | 385 void EnableAecDumpForId(const base::FilePath& file, int id); |
385 // Sends |file_for_transit| to the render process. | 386 // Sends |file_for_transit| to the render process. |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 instance_weak_factory_; | 605 instance_weak_factory_; |
605 | 606 |
606 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 607 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
607 | 608 |
608 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 609 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
609 }; | 610 }; |
610 | 611 |
611 } // namespace content | 612 } // namespace content |
612 | 613 |
613 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 614 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |