| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 bool IsProcessBackgrounded() const override; | 101 bool IsProcessBackgrounded() const override; |
| 102 void IncrementServiceWorkerRefCount() override; | 102 void IncrementServiceWorkerRefCount() override; |
| 103 void DecrementServiceWorkerRefCount() override; | 103 void DecrementServiceWorkerRefCount() override; |
| 104 void IncrementSharedWorkerRefCount() override; | 104 void IncrementSharedWorkerRefCount() override; |
| 105 void DecrementSharedWorkerRefCount() override; | 105 void DecrementSharedWorkerRefCount() override; |
| 106 void ForceReleaseWorkerRefCounts() override; | 106 void ForceReleaseWorkerRefCounts() override; |
| 107 bool IsWorkerRefCountDisabled() override; | 107 bool IsWorkerRefCountDisabled() override; |
| 108 void PurgeAndSuspend() override; | 108 void PurgeAndSuspend() override; |
| 109 void Resume() override; | 109 void Resume() override; |
| 110 mojom::Renderer* GetRendererInterface() override; | 110 mojom::Renderer* GetRendererInterface() override; |
| 111 BrowserMessageFilter* GetResourceMessageFilter() override; |
| 111 | 112 |
| 112 // IPC::Sender via RenderProcessHost. | 113 // IPC::Sender via RenderProcessHost. |
| 113 bool Send(IPC::Message* msg) override; | 114 bool Send(IPC::Message* msg) override; |
| 114 | 115 |
| 115 // IPC::Listener via RenderProcessHost. | 116 // IPC::Listener via RenderProcessHost. |
| 116 bool OnMessageReceived(const IPC::Message& msg) override; | 117 bool OnMessageReceived(const IPC::Message& msg) override; |
| 117 void OnChannelConnected(int32_t peer_pid) override; | 118 void OnChannelConnected(int32_t peer_pid) override; |
| 118 | 119 |
| 119 // Attaches the factory object so we can remove this object in its destructor | 120 // Attaches the factory object so we can remove this object in its destructor |
| 120 // and prevent MockRenderProcessHostFacotry from deleting it. | 121 // and prevent MockRenderProcessHostFacotry from deleting it. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 190 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
| 190 // the destructor and prevent them from being leaked. | 191 // the destructor and prevent them from being leaked. |
| 191 mutable ScopedVector<MockRenderProcessHost> processes_; | 192 mutable ScopedVector<MockRenderProcessHost> processes_; |
| 192 | 193 |
| 193 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 194 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
| 194 }; | 195 }; |
| 195 | 196 |
| 196 } // namespace content | 197 } // namespace content |
| 197 | 198 |
| 198 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 199 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |