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 <utility> | 10 #include <utility> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void ClearWebRtcLogMessageCallback() override; | 89 void ClearWebRtcLogMessageCallback() override; |
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 void NotifyTimezoneChange(const std::string& zone_id) override; | 96 void NotifyTimezoneChange(const std::string& zone_id) override; |
97 shell::InterfaceRegistry* GetInterfaceRegistry() override; | 97 shell::InterfaceRegistry* GetInterfaceRegistry() override; |
98 shell::InterfaceProvider* GetRemoteInterfaces() override; | 98 shell::InterfaceProvider* GetRemoteInterfaces() override; |
| 99 shell::Connection* GetChildConnection() override; |
99 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() | 100 std::unique_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() |
100 override; | 101 override; |
101 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 102 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
102 #if defined(ENABLE_BROWSER_CDMS) | 103 #if defined(ENABLE_BROWSER_CDMS) |
103 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, | 104 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, |
104 int cdm_id) const override; | 105 int cdm_id) const override; |
105 #endif | 106 #endif |
106 bool IsProcessBackgrounded() const override; | 107 bool IsProcessBackgrounded() const override; |
107 void IncrementWorkerRefCount() override; | 108 void IncrementWorkerRefCount() override; |
108 void DecrementWorkerRefCount() override; | 109 void DecrementWorkerRefCount() override; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 // 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 |
192 // the destructor and prevent them from being leaked. | 193 // the destructor and prevent them from being leaked. |
193 mutable ScopedVector<MockRenderProcessHost> processes_; | 194 mutable ScopedVector<MockRenderProcessHost> processes_; |
194 | 195 |
195 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 196 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
196 }; | 197 }; |
197 | 198 |
198 } // namespace content | 199 } // namespace content |
199 | 200 |
200 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 201 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |