| 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> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 15 #include "base/metrics/persistent_memory_allocator.h" | 15 #include "base/metrics/persistent_memory_allocator.h" |
| 16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 17 #include "content/public/browser/render_process_host.h" | 17 #include "content/public/browser/render_process_host.h" |
| 18 #include "content/public/browser/render_process_host_factory.h" | 18 #include "content/public/browser/render_process_host_factory.h" |
| 19 #include "ipc/ipc_test_sink.h" | 19 #include "ipc/ipc_test_sink.h" |
| 20 #include "media/media_features.h" |
| 20 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" | 21 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" |
| 21 #include "services/service_manager/public/cpp/interface_provider.h" | 22 #include "services/service_manager/public/cpp/interface_provider.h" |
| 22 | 23 |
| 23 class StoragePartition; | 24 class StoragePartition; |
| 24 | 25 |
| 25 namespace content { | 26 namespace content { |
| 26 | 27 |
| 27 class MockRenderProcessHostFactory; | 28 class MockRenderProcessHostFactory; |
| 28 class RenderWidgetHost; | 29 class RenderWidgetHost; |
| 29 | 30 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void RemovePendingView() override; | 75 void RemovePendingView() override; |
| 75 void SetSuddenTerminationAllowed(bool allowed) override; | 76 void SetSuddenTerminationAllowed(bool allowed) override; |
| 76 bool SuddenTerminationAllowed() const override; | 77 bool SuddenTerminationAllowed() const override; |
| 77 BrowserContext* GetBrowserContext() const override; | 78 BrowserContext* GetBrowserContext() const override; |
| 78 bool InSameStoragePartition(StoragePartition* partition) const override; | 79 bool InSameStoragePartition(StoragePartition* partition) const override; |
| 79 IPC::ChannelProxy* GetChannel() override; | 80 IPC::ChannelProxy* GetChannel() override; |
| 80 void AddFilter(BrowserMessageFilter* filter) override; | 81 void AddFilter(BrowserMessageFilter* filter) override; |
| 81 bool FastShutdownForPageCount(size_t count) override; | 82 bool FastShutdownForPageCount(size_t count) override; |
| 82 base::TimeDelta GetChildProcessIdleTime() const override; | 83 base::TimeDelta GetChildProcessIdleTime() const override; |
| 83 void FilterURL(bool empty_allowed, GURL* url) override; | 84 void FilterURL(bool empty_allowed, GURL* url) override; |
| 84 #if defined(ENABLE_WEBRTC) | 85 #if BUILDFLAG(ENABLE_WEBRTC) |
| 85 void EnableAudioDebugRecordings(const base::FilePath& file) override; | 86 void EnableAudioDebugRecordings(const base::FilePath& file) override; |
| 86 void DisableAudioDebugRecordings() override; | 87 void DisableAudioDebugRecordings() override; |
| 87 bool StartWebRTCEventLog(const base::FilePath& file_path) override; | 88 bool StartWebRTCEventLog(const base::FilePath& file_path) override; |
| 88 bool StopWebRTCEventLog() override; | 89 bool StopWebRTCEventLog() override; |
| 89 void SetWebRtcLogMessageCallback( | 90 void SetWebRtcLogMessageCallback( |
| 90 base::Callback<void(const std::string&)> callback) override; | 91 base::Callback<void(const std::string&)> callback) override; |
| 91 void ClearWebRtcLogMessageCallback() override; | 92 void ClearWebRtcLogMessageCallback() override; |
| 92 WebRtcStopRtpDumpCallback StartRtpDump( | 93 WebRtcStopRtpDumpCallback StartRtpDump( |
| 93 bool incoming, | 94 bool incoming, |
| 94 bool outgoing, | 95 bool outgoing, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // 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 |
| 191 // the destructor and prevent them from being leaked. | 192 // the destructor and prevent them from being leaked. |
| 192 mutable ScopedVector<MockRenderProcessHost> processes_; | 193 mutable ScopedVector<MockRenderProcessHost> processes_; |
| 193 | 194 |
| 194 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 195 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
| 195 }; | 196 }; |
| 196 | 197 |
| 197 } // namespace content | 198 } // namespace content |
| 198 | 199 |
| 199 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 200 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |