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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 bool FastShutdownStarted() const override; | 52 bool FastShutdownStarted() const override; |
53 void DumpHandles() override; | 53 void DumpHandles() override; |
54 base::ProcessHandle GetHandle() const override; | 54 base::ProcessHandle GetHandle() const override; |
55 int GetID() const override; | 55 int GetID() const override; |
56 bool HasConnection() const override; | 56 bool HasConnection() const override; |
57 void SetIgnoreInputEvents(bool ignore_input_events) override; | 57 void SetIgnoreInputEvents(bool ignore_input_events) override; |
58 bool IgnoreInputEvents() const override; | 58 bool IgnoreInputEvents() const override; |
59 void Cleanup() override; | 59 void Cleanup() override; |
60 void AddPendingView() override; | 60 void AddPendingView() override; |
61 void RemovePendingView() override; | 61 void RemovePendingView() override; |
| 62 void SetSuddenTerminationAllowed(bool allowed) override; |
62 bool SuddenTerminationAllowed() const override; | 63 bool SuddenTerminationAllowed() const override; |
63 BrowserContext* GetBrowserContext() const override; | 64 BrowserContext* GetBrowserContext() const override; |
64 bool InSameStoragePartition(StoragePartition* partition) const override; | 65 bool InSameStoragePartition(StoragePartition* partition) const override; |
65 IPC::ChannelProxy* GetChannel() override; | 66 IPC::ChannelProxy* GetChannel() override; |
66 void AddFilter(BrowserMessageFilter* filter) override; | 67 void AddFilter(BrowserMessageFilter* filter) override; |
67 bool FastShutdownForPageCount(size_t count) override; | 68 bool FastShutdownForPageCount(size_t count) override; |
68 base::TimeDelta GetChildProcessIdleTime() const override; | 69 base::TimeDelta GetChildProcessIdleTime() const override; |
69 void ResumeRequestsForView(int route_id) override; | 70 void ResumeRequestsForView(int route_id) override; |
70 void FilterURL(bool empty_allowed, GURL* url) override; | 71 void FilterURL(bool empty_allowed, GURL* url) override; |
71 #if defined(ENABLE_WEBRTC) | 72 #if defined(ENABLE_WEBRTC) |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 156 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
156 // the destructor and prevent them from being leaked. | 157 // the destructor and prevent them from being leaked. |
157 mutable ScopedVector<MockRenderProcessHost> processes_; | 158 mutable ScopedVector<MockRenderProcessHost> processes_; |
158 | 159 |
159 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 160 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
160 }; | 161 }; |
161 | 162 |
162 } // namespace content | 163 } // namespace content |
163 | 164 |
164 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 165 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |