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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual bool SuddenTerminationAllowed() const OVERRIDE; | 68 virtual bool SuddenTerminationAllowed() const OVERRIDE; |
69 virtual BrowserContext* GetBrowserContext() const OVERRIDE; | 69 virtual BrowserContext* GetBrowserContext() const OVERRIDE; |
70 virtual bool InSameStoragePartition( | 70 virtual bool InSameStoragePartition( |
71 StoragePartition* partition) const OVERRIDE; | 71 StoragePartition* partition) const OVERRIDE; |
72 virtual IPC::ChannelProxy* GetChannel() OVERRIDE; | 72 virtual IPC::ChannelProxy* GetChannel() OVERRIDE; |
73 virtual void AddFilter(BrowserMessageFilter* filter) OVERRIDE; | 73 virtual void AddFilter(BrowserMessageFilter* filter) OVERRIDE; |
74 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; | 74 virtual bool FastShutdownForPageCount(size_t count) OVERRIDE; |
75 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; | 75 virtual base::TimeDelta GetChildProcessIdleTime() const OVERRIDE; |
76 virtual void SurfaceUpdated(int32 surface_id) OVERRIDE; | 76 virtual void SurfaceUpdated(int32 surface_id) OVERRIDE; |
77 virtual void ResumeRequestsForView(int route_id) OVERRIDE; | 77 virtual void ResumeRequestsForView(int route_id) OVERRIDE; |
| 78 virtual void ResumeDeferredNavigation( |
| 79 const GlobalRequestID& request_id) OVERRIDE; |
78 | 80 |
79 // IPC::Sender via RenderProcessHost. | 81 // IPC::Sender via RenderProcessHost. |
80 virtual bool Send(IPC::Message* msg) OVERRIDE; | 82 virtual bool Send(IPC::Message* msg) OVERRIDE; |
81 | 83 |
82 // IPC::Listener via RenderProcessHost. | 84 // IPC::Listener via RenderProcessHost. |
83 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 85 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
84 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 86 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
85 | 87 |
86 // Attaches the factory object so we can remove this object in its destructor | 88 // Attaches the factory object so we can remove this object in its destructor |
87 // and prevent MockRenderProcessHostFacotry from deleting it. | 89 // and prevent MockRenderProcessHostFacotry from deleting it. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 131 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
130 // the destructor and prevent them from being leaked. | 132 // the destructor and prevent them from being leaked. |
131 mutable ScopedVector<MockRenderProcessHost> processes_; | 133 mutable ScopedVector<MockRenderProcessHost> processes_; |
132 | 134 |
133 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 135 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
134 }; | 136 }; |
135 | 137 |
136 } // namespace content | 138 } // namespace content |
137 | 139 |
138 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 140 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |