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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 BrowserContext* GetBrowserContext() const override; | 73 BrowserContext* GetBrowserContext() const override; |
74 bool InSameStoragePartition(StoragePartition* partition) const override; | 74 bool InSameStoragePartition(StoragePartition* partition) const override; |
75 IPC::ChannelProxy* GetChannel() override; | 75 IPC::ChannelProxy* GetChannel() override; |
76 void AddFilter(BrowserMessageFilter* filter) override; | 76 void AddFilter(BrowserMessageFilter* filter) override; |
77 bool FastShutdownForPageCount(size_t count) override; | 77 bool FastShutdownForPageCount(size_t count) override; |
78 base::TimeDelta GetChildProcessIdleTime() const override; | 78 base::TimeDelta GetChildProcessIdleTime() const override; |
79 void FilterURL(bool empty_allowed, GURL* url) override; | 79 void FilterURL(bool empty_allowed, GURL* url) override; |
80 #if defined(ENABLE_WEBRTC) | 80 #if defined(ENABLE_WEBRTC) |
81 void EnableAudioDebugRecordings(const base::FilePath& file) override; | 81 void EnableAudioDebugRecordings(const base::FilePath& file) override; |
82 void DisableAudioDebugRecordings() override; | 82 void DisableAudioDebugRecordings() override; |
83 void EnableEventLogRecordings(const base::FilePath& file) override; | |
84 void DisableEventLogRecordings() override; | |
85 void SetWebRtcLogMessageCallback( | 83 void SetWebRtcLogMessageCallback( |
86 base::Callback<void(const std::string&)> callback) override; | 84 base::Callback<void(const std::string&)> callback) override; |
87 WebRtcStopRtpDumpCallback StartRtpDump( | 85 WebRtcStopRtpDumpCallback StartRtpDump( |
88 bool incoming, | 86 bool incoming, |
89 bool outgoing, | 87 bool outgoing, |
90 const WebRtcRtpPacketCallback& packet_callback) override; | 88 const WebRtcRtpPacketCallback& packet_callback) override; |
91 #endif | 89 #endif |
92 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 90 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
93 void NotifyTimezoneChange(const std::string& zone_id) override; | 91 void NotifyTimezoneChange(const std::string& zone_id) override; |
94 ServiceRegistry* GetServiceRegistry() override; | 92 ServiceRegistry* GetServiceRegistry() override; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 181 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
184 // the destructor and prevent them from being leaked. | 182 // the destructor and prevent them from being leaked. |
185 mutable ScopedVector<MockRenderProcessHost> processes_; | 183 mutable ScopedVector<MockRenderProcessHost> processes_; |
186 | 184 |
187 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 185 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
188 }; | 186 }; |
189 | 187 |
190 } // namespace content | 188 } // namespace content |
191 | 189 |
192 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 190 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |