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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 AddWord(const string16& word); | 50 virtual void AddWord(const string16& word); |
51 virtual bool FastShutdownIfPossible(); | 51 virtual bool FastShutdownIfPossible(); |
52 virtual base::ProcessHandle GetHandle(); | 52 virtual base::ProcessHandle GetHandle(); |
53 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); | 53 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id); |
| 54 virtual void SetCompositingSurface( |
| 55 int render_widget_id, |
| 56 gfx::PluginWindowHandle compositing_surface); |
54 | 57 |
55 // IPC::Channel::Sender via RenderProcessHost. | 58 // IPC::Channel::Sender via RenderProcessHost. |
56 virtual bool Send(IPC::Message* msg); | 59 virtual bool Send(IPC::Message* msg); |
57 | 60 |
58 // IPC::Channel::Listener via RenderProcessHost. | 61 // IPC::Channel::Listener via RenderProcessHost. |
59 virtual bool OnMessageReceived(const IPC::Message& msg); | 62 virtual bool OnMessageReceived(const IPC::Message& msg); |
60 virtual void OnChannelConnected(int32 peer_pid); | 63 virtual void OnChannelConnected(int32 peer_pid); |
61 | 64 |
62 // Attaches the factory object so we can remove this object in its destructor | 65 // Attaches the factory object so we can remove this object in its destructor |
63 // and prevent MockRenderProcessHostFacotry from deleting it. | 66 // and prevent MockRenderProcessHostFacotry from deleting it. |
(...skipping 26 matching lines...) Expand all Loading... |
90 private: | 93 private: |
91 // A list of MockRenderProcessHosts created by this object. This list is used | 94 // A list of MockRenderProcessHosts created by this object. This list is used |
92 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 95 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
93 // the destructor and prevent them from being leaked. | 96 // the destructor and prevent them from being leaked. |
94 mutable ScopedVector<MockRenderProcessHost> processes_; | 97 mutable ScopedVector<MockRenderProcessHost> processes_; |
95 | 98 |
96 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 99 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
97 }; | 100 }; |
98 | 101 |
99 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ | 102 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |