Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2420843004: Clean up mojom::Renderer usage in RPH (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 override; 167 override;
168 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; 168 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override;
169 bool IsProcessBackgrounded() const override; 169 bool IsProcessBackgrounded() const override;
170 void IncrementServiceWorkerRefCount() override; 170 void IncrementServiceWorkerRefCount() override;
171 void DecrementServiceWorkerRefCount() override; 171 void DecrementServiceWorkerRefCount() override;
172 void IncrementSharedWorkerRefCount() override; 172 void IncrementSharedWorkerRefCount() override;
173 void DecrementSharedWorkerRefCount() override; 173 void DecrementSharedWorkerRefCount() override;
174 void ForceReleaseWorkerRefCounts() override; 174 void ForceReleaseWorkerRefCounts() override;
175 bool IsWorkerRefCountDisabled() override; 175 bool IsWorkerRefCountDisabled() override;
176 void PurgeAndSuspend() override; 176 void PurgeAndSuspend() override;
177 mojom::Renderer* GetRendererInterface() override;
177 178
178 mojom::RouteProvider* GetRemoteRouteProvider(); 179 mojom::RouteProvider* GetRemoteRouteProvider();
179 180
180 static mojom::Renderer* GetRendererInterface(RenderProcessHost* host);
181
182 // IPC::Sender via RenderProcessHost. 181 // IPC::Sender via RenderProcessHost.
183 bool Send(IPC::Message* msg) override; 182 bool Send(IPC::Message* msg) override;
184 183
185 // IPC::Listener via RenderProcessHost. 184 // IPC::Listener via RenderProcessHost.
186 bool OnMessageReceived(const IPC::Message& msg) override; 185 bool OnMessageReceived(const IPC::Message& msg) override;
187 void OnChannelConnected(int32_t peer_pid) override; 186 void OnChannelConnected(int32_t peer_pid) override;
188 void OnChannelError() override; 187 void OnChannelError() override;
189 void OnBadMessageReceived(const IPC::Message& message) override; 188 void OnBadMessageReceived(const IPC::Message& message) override;
190 189
191 // ChildProcessLauncher::Client implementation. 190 // ChildProcessLauncher::Client implementation.
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 // Therefore a proper shutdown event to unblock the UI thread is not 570 // Therefore a proper shutdown event to unblock the UI thread is not
572 // possible without massive refactoring shutdown code. 571 // possible without massive refactoring shutdown code.
573 // Luckily Android never performs a clean shutdown. So explicitly 572 // Luckily Android never performs a clean shutdown. So explicitly
574 // ignore this problem. 573 // ignore this problem.
575 base::WaitableEvent never_signaled_; 574 base::WaitableEvent never_signaled_;
576 #endif 575 #endif
577 576
578 scoped_refptr<ResourceMessageFilter> resource_message_filter_; 577 scoped_refptr<ResourceMessageFilter> resource_message_filter_;
579 578
580 mojom::RouteProviderAssociatedPtr remote_route_provider_; 579 mojom::RouteProviderAssociatedPtr remote_route_provider_;
580 mojom::RendererAssociatedPtr renderer_interface_;
581 581
582 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend 582 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend
583 // WeakPtrs which are invalidated any time the RPHI is recycled. 583 // WeakPtrs which are invalidated any time the RPHI is recycled.
584 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>> 584 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>>
585 instance_weak_factory_; 585 instance_weak_factory_;
586 586
587 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 587 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
588 588
589 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 589 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
590 }; 590 };
591 591
592 } // namespace content 592 } // namespace content
593 593
594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_proxy_host.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698