| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 bool SuddenTerminationAllowed() const override; | 67 bool SuddenTerminationAllowed() const override; |
| 68 BrowserContext* GetBrowserContext() const override; | 68 BrowserContext* GetBrowserContext() const override; |
| 69 bool InSameStoragePartition(StoragePartition* partition) const override; | 69 bool InSameStoragePartition(StoragePartition* partition) const override; |
| 70 IPC::ChannelProxy* GetChannel() override; | 70 IPC::ChannelProxy* GetChannel() override; |
| 71 void AddFilter(BrowserMessageFilter* filter) override; | 71 void AddFilter(BrowserMessageFilter* filter) override; |
| 72 bool FastShutdownForPageCount(size_t count) override; | 72 bool FastShutdownForPageCount(size_t count) override; |
| 73 base::TimeDelta GetChildProcessIdleTime() const override; | 73 base::TimeDelta GetChildProcessIdleTime() const override; |
| 74 void ResumeRequestsForView(int route_id) override; | 74 void ResumeRequestsForView(int route_id) override; |
| 75 void FilterURL(bool empty_allowed, GURL* url) override; | 75 void FilterURL(bool empty_allowed, GURL* url) override; |
| 76 #if defined(ENABLE_WEBRTC) | 76 #if defined(ENABLE_WEBRTC) |
| 77 void EnableAudioDebugRecordings(const base::FilePath& file) override; | |
| 78 void DisableAudioDebugRecordings() override; | |
| 79 void SetWebRtcLogMessageCallback( | 77 void SetWebRtcLogMessageCallback( |
| 80 base::Callback<void(const std::string&)> callback) override; | 78 base::Callback<void(const std::string&)> callback) override; |
| 81 WebRtcStopRtpDumpCallback StartRtpDump( | 79 WebRtcStopRtpDumpCallback StartRtpDump( |
| 82 bool incoming, | 80 bool incoming, |
| 83 bool outgoing, | 81 bool outgoing, |
| 84 const WebRtcRtpPacketCallback& packet_callback) override; | 82 const WebRtcRtpPacketCallback& packet_callback) override; |
| 85 #endif | 83 #endif |
| 86 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 84 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
| 87 void NotifyTimezoneChange(const std::string& zone_id) override; | 85 void NotifyTimezoneChange(const std::string& zone_id) override; |
| 88 ServiceRegistry* GetServiceRegistry() override; | 86 ServiceRegistry* GetServiceRegistry() override; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 159 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
| 162 // the destructor and prevent them from being leaked. | 160 // the destructor and prevent them from being leaked. |
| 163 mutable ScopedVector<MockRenderProcessHost> processes_; | 161 mutable ScopedVector<MockRenderProcessHost> processes_; |
| 164 | 162 |
| 165 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 163 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
| 166 }; | 164 }; |
| 167 | 165 |
| 168 } // namespace content | 166 } // namespace content |
| 169 | 167 |
| 170 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 168 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |