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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 void SetIgnoreInputEvents(bool ignore_input_events) override; | 67 void SetIgnoreInputEvents(bool ignore_input_events) override; |
68 bool IgnoreInputEvents() const override; | 68 bool IgnoreInputEvents() const override; |
69 void Cleanup() override; | 69 void Cleanup() override; |
70 void AddPendingView() override; | 70 void AddPendingView() override; |
71 void RemovePendingView() override; | 71 void RemovePendingView() override; |
72 void SetSuddenTerminationAllowed(bool allowed) override; | 72 void SetSuddenTerminationAllowed(bool allowed) override; |
73 bool SuddenTerminationAllowed() const override; | 73 bool SuddenTerminationAllowed() const override; |
74 BrowserContext* GetBrowserContext() const override; | 74 BrowserContext* GetBrowserContext() const override; |
75 bool InSameStoragePartition(StoragePartition* partition) const override; | 75 bool InSameStoragePartition(StoragePartition* partition) const override; |
76 IPC::ChannelProxy* GetChannel() override; | 76 IPC::ChannelProxy* GetChannel() override; |
| 77 IPC::Sender* GetImmediateSender() override; |
| 78 IPC::Sender* GetIOThreadSender() override; |
77 void AddFilter(BrowserMessageFilter* filter) override; | 79 void AddFilter(BrowserMessageFilter* filter) override; |
78 bool FastShutdownForPageCount(size_t count) override; | 80 bool FastShutdownForPageCount(size_t count) override; |
79 base::TimeDelta GetChildProcessIdleTime() const override; | 81 base::TimeDelta GetChildProcessIdleTime() const override; |
80 void FilterURL(bool empty_allowed, GURL* url) override; | 82 void FilterURL(bool empty_allowed, GURL* url) override; |
81 #if defined(ENABLE_WEBRTC) | 83 #if defined(ENABLE_WEBRTC) |
82 void EnableAudioDebugRecordings(const base::FilePath& file) override; | 84 void EnableAudioDebugRecordings(const base::FilePath& file) override; |
83 void DisableAudioDebugRecordings() override; | 85 void DisableAudioDebugRecordings() override; |
84 void EnableEventLogRecordings(const base::FilePath& file) override; | 86 void EnableEventLogRecordings(const base::FilePath& file) override; |
85 void DisableEventLogRecordings() override; | 87 void DisableEventLogRecordings() override; |
86 void SetWebRtcLogMessageCallback( | 88 void SetWebRtcLogMessageCallback( |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 186 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
185 // the destructor and prevent them from being leaked. | 187 // the destructor and prevent them from being leaked. |
186 mutable ScopedVector<MockRenderProcessHost> processes_; | 188 mutable ScopedVector<MockRenderProcessHost> processes_; |
187 | 189 |
188 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 190 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
189 }; | 191 }; |
190 | 192 |
191 } // namespace content | 193 } // namespace content |
192 | 194 |
193 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 195 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |