OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual int GetNextRoutingID(); | 40 virtual int GetNextRoutingID(); |
41 virtual void CancelResourceRequests(int render_widget_id); | 41 virtual void CancelResourceRequests(int render_widget_id); |
42 virtual void CrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params); | 42 virtual void CrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params); |
43 virtual bool WaitForUpdateMsg(int render_widget_id, | 43 virtual bool WaitForUpdateMsg(int render_widget_id, |
44 const base::TimeDelta& max_delay, | 44 const base::TimeDelta& max_delay, |
45 IPC::Message* msg); | 45 IPC::Message* msg); |
46 virtual void ReceivedBadMessage(); | 46 virtual void ReceivedBadMessage(); |
47 virtual void WidgetRestored(); | 47 virtual void WidgetRestored(); |
48 virtual void WidgetHidden(); | 48 virtual void WidgetHidden(); |
49 virtual int VisibleWidgetCount() const; | 49 virtual int VisibleWidgetCount() const; |
| 50 virtual void AddPendingView(); |
| 51 virtual void RemovePendingView(); |
50 virtual void AddWord(const string16& word); | 52 virtual void AddWord(const string16& word); |
51 virtual bool FastShutdownIfPossible(); | 53 virtual bool FastShutdownIfPossible(); |
52 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms); | 54 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms); |
53 virtual base::ProcessHandle GetHandle(); | 55 virtual base::ProcessHandle GetHandle(); |
54 | 56 |
55 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); | 57 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); |
56 | 58 |
57 // IPC::Channel::Sender via RenderProcessHost. | 59 // IPC::Channel::Sender via RenderProcessHost. |
58 virtual bool Send(IPC::Message* msg); | 60 virtual bool Send(IPC::Message* msg); |
59 | 61 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 private: | 94 private: |
93 // A list of MockRenderProcessHosts created by this object. This list is used | 95 // A list of MockRenderProcessHosts created by this object. This list is used |
94 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 96 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
95 // the destructor and prevent them from being leaked. | 97 // the destructor and prevent them from being leaked. |
96 mutable ScopedVector<MockRenderProcessHost> processes_; | 98 mutable ScopedVector<MockRenderProcessHost> processes_; |
97 | 99 |
98 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 100 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
99 }; | 101 }; |
100 | 102 |
101 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ | 103 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |