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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void AddPendingView() override; | 64 void AddPendingView() override; |
65 void RemovePendingView() override; | 65 void RemovePendingView() override; |
66 void SetSuddenTerminationAllowed(bool allowed) override; | 66 void SetSuddenTerminationAllowed(bool allowed) override; |
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 ResumeRequestsForFrame(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; | 77 void EnableAudioDebugRecordings(const base::FilePath& file) override; |
78 void DisableAudioDebugRecordings() override; | 78 void DisableAudioDebugRecordings() override; |
79 void EnableEventLogRecordings(const base::FilePath& file) override; | 79 void EnableEventLogRecordings(const base::FilePath& file) override; |
80 void DisableEventLogRecordings() override; | 80 void DisableEventLogRecordings() override; |
81 void SetWebRtcLogMessageCallback( | 81 void SetWebRtcLogMessageCallback( |
82 base::Callback<void(const std::string&)> callback) override; | 82 base::Callback<void(const std::string&)> callback) override; |
83 WebRtcStopRtpDumpCallback StartRtpDump( | 83 WebRtcStopRtpDumpCallback StartRtpDump( |
84 bool incoming, | 84 bool incoming, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 174 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
175 // the destructor and prevent them from being leaked. | 175 // the destructor and prevent them from being leaked. |
176 mutable ScopedVector<MockRenderProcessHost> processes_; | 176 mutable ScopedVector<MockRenderProcessHost> processes_; |
177 | 177 |
178 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 178 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
179 }; | 179 }; |
180 | 180 |
181 } // namespace content | 181 } // namespace content |
182 | 182 |
183 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 183 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |