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