| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void NotifyTimezoneChange(const std::string& zone_id) override; | 96 void NotifyTimezoneChange(const std::string& zone_id) override; |
| 97 shell::InterfaceProvider* GetRemoteInterfaces() override; | 97 shell::InterfaceProvider* GetRemoteInterfaces() override; |
| 98 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() | 98 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() |
| 99 override; | 99 override; |
| 100 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 100 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
| 101 #if defined(ENABLE_BROWSER_CDMS) | 101 #if defined(ENABLE_BROWSER_CDMS) |
| 102 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, | 102 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, |
| 103 int cdm_id) const override; | 103 int cdm_id) const override; |
| 104 #endif | 104 #endif |
| 105 bool IsProcessBackgrounded() const override; | 105 bool IsProcessBackgrounded() const override; |
| 106 |
| 106 void IncrementServiceWorkerRefCount() override; | 107 void IncrementServiceWorkerRefCount() override; |
| 107 void DecrementServiceWorkerRefCount() override; | 108 void DecrementServiceWorkerRefCount() override; |
| 108 void IncrementSharedWorkerRefCount() override; | 109 void IncrementSharedWorkerRefCount() override; |
| 109 void DecrementSharedWorkerRefCount() override; | 110 void DecrementSharedWorkerRefCount() override; |
| 111 void ForceReleaseWorkerRefCounts() override; |
| 112 bool IsWorkerRefCountDisabled() override; |
| 113 |
| 110 void PurgeAndSuspend() override; | 114 void PurgeAndSuspend() override; |
| 111 | 115 |
| 112 // IPC::Sender via RenderProcessHost. | 116 // IPC::Sender via RenderProcessHost. |
| 113 bool Send(IPC::Message* msg) override; | 117 bool Send(IPC::Message* msg) override; |
| 114 | 118 |
| 115 // IPC::Listener via RenderProcessHost. | 119 // IPC::Listener via RenderProcessHost. |
| 116 bool OnMessageReceived(const IPC::Message& msg) override; | 120 bool OnMessageReceived(const IPC::Message& msg) override; |
| 117 void OnChannelConnected(int32_t peer_pid) override; | 121 void OnChannelConnected(int32_t peer_pid) override; |
| 118 | 122 |
| 119 // Attaches the factory object so we can remove this object in its destructor | 123 // Attaches the factory object so we can remove this object in its destructor |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 191 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
| 188 // the destructor and prevent them from being leaked. | 192 // the destructor and prevent them from being leaked. |
| 189 mutable ScopedVector<MockRenderProcessHost> processes_; | 193 mutable ScopedVector<MockRenderProcessHost> processes_; |
| 190 | 194 |
| 191 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 195 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
| 192 }; | 196 }; |
| 193 | 197 |
| 194 } // namespace content | 198 } // namespace content |
| 195 | 199 |
| 196 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 200 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |