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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 WebRtcStopRtpDumpCallback StartRtpDump( | 90 WebRtcStopRtpDumpCallback StartRtpDump( |
91 bool incoming, | 91 bool incoming, |
92 bool outgoing, | 92 bool outgoing, |
93 const WebRtcRtpPacketCallback& packet_callback) override; | 93 const WebRtcRtpPacketCallback& packet_callback) override; |
94 #endif | 94 #endif |
95 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 95 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
96 shell::InterfaceProvider* GetRemoteInterfaces() override; | 96 shell::InterfaceProvider* GetRemoteInterfaces() override; |
97 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() | 97 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() |
98 override; | 98 override; |
99 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 99 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
100 #if defined(ENABLE_BROWSER_CDMS) | |
101 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, | |
102 int cdm_id) const override; | |
103 #endif | |
104 bool IsProcessBackgrounded() const override; | 100 bool IsProcessBackgrounded() const override; |
105 void IncrementServiceWorkerRefCount() override; | 101 void IncrementServiceWorkerRefCount() override; |
106 void DecrementServiceWorkerRefCount() override; | 102 void DecrementServiceWorkerRefCount() override; |
107 void IncrementSharedWorkerRefCount() override; | 103 void IncrementSharedWorkerRefCount() override; |
108 void DecrementSharedWorkerRefCount() override; | 104 void DecrementSharedWorkerRefCount() override; |
109 void ForceReleaseWorkerRefCounts() override; | 105 void ForceReleaseWorkerRefCounts() override; |
110 bool IsWorkerRefCountDisabled() override; | 106 bool IsWorkerRefCountDisabled() override; |
111 void PurgeAndSuspend() override; | 107 void PurgeAndSuspend() override; |
112 | 108 |
113 // IPC::Sender via RenderProcessHost. | 109 // IPC::Sender via RenderProcessHost. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 184 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
189 // the destructor and prevent them from being leaked. | 185 // the destructor and prevent them from being leaked. |
190 mutable ScopedVector<MockRenderProcessHost> processes_; | 186 mutable ScopedVector<MockRenderProcessHost> processes_; |
191 | 187 |
192 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 188 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
193 }; | 189 }; |
194 | 190 |
195 } // namespace content | 191 } // namespace content |
196 | 192 |
197 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 193 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |