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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 170 bool IsProcessBackgrounded() const override; | 170 bool IsProcessBackgrounded() const override; |
| 171 void IncrementServiceWorkerRefCount() override; | 171 void IncrementServiceWorkerRefCount() override; |
| 172 void DecrementServiceWorkerRefCount() override; | 172 void DecrementServiceWorkerRefCount() override; |
| 173 void IncrementSharedWorkerRefCount() override; | 173 void IncrementSharedWorkerRefCount() override; |
| 174 void DecrementSharedWorkerRefCount() override; | 174 void DecrementSharedWorkerRefCount() override; |
| 175 void ForceReleaseWorkerRefCounts() override; | 175 void ForceReleaseWorkerRefCounts() override; |
| 176 bool IsWorkerRefCountDisabled() override; | 176 bool IsWorkerRefCountDisabled() override; |
| 177 void PurgeAndSuspend() override; | 177 void PurgeAndSuspend() override; |
| 178 | 178 |
| 179 mojom::RouteProvider* GetRemoteRouteProvider(); | 179 mojom::RouteProvider* GetRemoteRouteProvider(); |
| 180 mojom::Renderer* GetRendererInterface(); | 180 |
| 181 static mojom::Renderer* GetRendererInterface(RenderProcessHost* host); | |
|
ncarter (slow)
2016/10/03 22:45:09
I'm okay with this approach. Putting a static meth
| |
| 181 | 182 |
| 182 // IPC::Sender via RenderProcessHost. | 183 // IPC::Sender via RenderProcessHost. |
| 183 bool Send(IPC::Message* msg) override; | 184 bool Send(IPC::Message* msg) override; |
| 184 | 185 |
| 185 // IPC::Listener via RenderProcessHost. | 186 // IPC::Listener via RenderProcessHost. |
| 186 bool OnMessageReceived(const IPC::Message& msg) override; | 187 bool OnMessageReceived(const IPC::Message& msg) override; |
| 187 void OnChannelConnected(int32_t peer_pid) override; | 188 void OnChannelConnected(int32_t peer_pid) override; |
| 188 void OnChannelError() override; | 189 void OnChannelError() override; |
| 189 void OnBadMessageReceived(const IPC::Message& message) override; | 190 void OnBadMessageReceived(const IPC::Message& message) override; |
| 190 | 191 |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 568 // Therefore a proper shutdown event to unblock the UI thread is not | 569 // Therefore a proper shutdown event to unblock the UI thread is not |
| 569 // possible without massive refactoring shutdown code. | 570 // possible without massive refactoring shutdown code. |
| 570 // Luckily Android never performs a clean shutdown. So explicitly | 571 // Luckily Android never performs a clean shutdown. So explicitly |
| 571 // ignore this problem. | 572 // ignore this problem. |
| 572 base::WaitableEvent never_signaled_; | 573 base::WaitableEvent never_signaled_; |
| 573 #endif | 574 #endif |
| 574 | 575 |
| 575 scoped_refptr<ResourceMessageFilter> resource_message_filter_; | 576 scoped_refptr<ResourceMessageFilter> resource_message_filter_; |
| 576 | 577 |
| 577 mojom::RouteProviderAssociatedPtr remote_route_provider_; | 578 mojom::RouteProviderAssociatedPtr remote_route_provider_; |
| 578 mojom::RendererAssociatedPtr renderer_interface_; | |
| 579 | 579 |
| 580 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend | 580 // A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend |
| 581 // WeakPtrs which are invalidated any time the RPHI is recycled. | 581 // WeakPtrs which are invalidated any time the RPHI is recycled. |
| 582 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>> | 582 std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>> |
| 583 instance_weak_factory_; | 583 instance_weak_factory_; |
| 584 | 584 |
| 585 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; | 585 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; |
| 586 | 586 |
| 587 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 587 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
| 588 }; | 588 }; |
| 589 | 589 |
| 590 } // namespace content | 590 } // namespace content |
| 591 | 591 |
| 592 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ | 592 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |