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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 BrowserContext* GetBrowserContext() const override; | 75 BrowserContext* GetBrowserContext() const override; |
76 bool InSameStoragePartition(StoragePartition* partition) const override; | 76 bool InSameStoragePartition(StoragePartition* partition) const override; |
77 IPC::ChannelProxy* GetChannel() override; | 77 IPC::ChannelProxy* GetChannel() override; |
78 void AddFilter(BrowserMessageFilter* filter) override; | 78 void AddFilter(BrowserMessageFilter* filter) override; |
79 bool FastShutdownForPageCount(size_t count) override; | 79 bool FastShutdownForPageCount(size_t count) override; |
80 base::TimeDelta GetChildProcessIdleTime() const override; | 80 base::TimeDelta GetChildProcessIdleTime() const override; |
81 void FilterURL(bool empty_allowed, GURL* url) override; | 81 void FilterURL(bool empty_allowed, GURL* url) override; |
82 #if defined(ENABLE_WEBRTC) | 82 #if defined(ENABLE_WEBRTC) |
83 void EnableAudioDebugRecordings(const base::FilePath& file) override; | 83 void EnableAudioDebugRecordings(const base::FilePath& file) override; |
84 void DisableAudioDebugRecordings() override; | 84 void DisableAudioDebugRecordings() override; |
85 void EnableEventLogRecordings(const base::FilePath& file) override; | 85 bool StartWebRTCEventLog(const base::FilePath& file_path) override; |
86 void DisableEventLogRecordings() override; | 86 bool StopWebRTCEventLog() override; |
87 void SetWebRtcLogMessageCallback( | 87 void SetWebRtcLogMessageCallback( |
88 base::Callback<void(const std::string&)> callback) override; | 88 base::Callback<void(const std::string&)> callback) override; |
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; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // 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 |
193 // the destructor and prevent them from being leaked. | 193 // the destructor and prevent them from being leaked. |
194 mutable ScopedVector<MockRenderProcessHost> processes_; | 194 mutable ScopedVector<MockRenderProcessHost> processes_; |
195 | 195 |
196 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 196 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
197 }; | 197 }; |
198 | 198 |
199 } // namespace content | 199 } // namespace content |
200 | 200 |
201 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 201 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |