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_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <memory> | 10 #include <memory> |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 size_t GetWorkerRefCount() const override; | 104 size_t GetWorkerRefCount() const override; |
105 void IncrementServiceWorkerRefCount() override; | 105 void IncrementServiceWorkerRefCount() override; |
106 void DecrementServiceWorkerRefCount() override; | 106 void DecrementServiceWorkerRefCount() override; |
107 void IncrementSharedWorkerRefCount() override; | 107 void IncrementSharedWorkerRefCount() override; |
108 void DecrementSharedWorkerRefCount() override; | 108 void DecrementSharedWorkerRefCount() override; |
109 void ForceReleaseWorkerRefCounts() override; | 109 void ForceReleaseWorkerRefCounts() override; |
110 bool IsWorkerRefCountDisabled() override; | 110 bool IsWorkerRefCountDisabled() override; |
111 void PurgeAndSuspend() override; | 111 void PurgeAndSuspend() override; |
112 void Resume() override; | 112 void Resume() override; |
113 mojom::Renderer* GetRendererInterface() override; | 113 mojom::Renderer* GetRendererInterface() override; |
| 114 void SetIsNeverSuitableForReuse() override; |
| 115 bool MayReuseHost() override; |
114 | 116 |
115 // IPC::Sender via RenderProcessHost. | 117 // IPC::Sender via RenderProcessHost. |
116 bool Send(IPC::Message* msg) override; | 118 bool Send(IPC::Message* msg) override; |
117 | 119 |
118 // IPC::Listener via RenderProcessHost. | 120 // IPC::Listener via RenderProcessHost. |
119 bool OnMessageReceived(const IPC::Message& msg) override; | 121 bool OnMessageReceived(const IPC::Message& msg) override; |
120 void OnChannelConnected(int32_t peer_pid) override; | 122 void OnChannelConnected(int32_t peer_pid) override; |
121 | 123 |
122 // Attaches the factory object so we can remove this object in its destructor | 124 // Attaches the factory object so we can remove this object in its destructor |
123 // and prevent MockRenderProcessHostFacotry from deleting it. | 125 // and prevent MockRenderProcessHostFacotry from deleting it. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 192 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
191 // the destructor and prevent them from being leaked. | 193 // the destructor and prevent them from being leaked. |
192 mutable ScopedVector<MockRenderProcessHost> processes_; | 194 mutable ScopedVector<MockRenderProcessHost> processes_; |
193 | 195 |
194 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 196 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
195 }; | 197 }; |
196 | 198 |
197 } // namespace content | 199 } // namespace content |
198 | 200 |
199 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 201 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |