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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual void ReceivedBadMessage() OVERRIDE; | 42 virtual void ReceivedBadMessage() OVERRIDE; |
43 virtual void WidgetRestored() OVERRIDE; | 43 virtual void WidgetRestored() OVERRIDE; |
44 virtual void WidgetHidden() OVERRIDE; | 44 virtual void WidgetHidden() OVERRIDE; |
45 virtual int VisibleWidgetCount() const OVERRIDE; | 45 virtual int VisibleWidgetCount() const OVERRIDE; |
46 virtual void AddWord(const string16& word); | 46 virtual void AddWord(const string16& word); |
47 virtual bool FastShutdownIfPossible() OVERRIDE; | 47 virtual bool FastShutdownIfPossible() OVERRIDE; |
48 virtual bool FastShutdownStarted() const OVERRIDE; | 48 virtual bool FastShutdownStarted() const OVERRIDE; |
49 virtual void DumpHandles() OVERRIDE; | 49 virtual void DumpHandles() OVERRIDE; |
50 virtual base::ProcessHandle GetHandle() OVERRIDE; | 50 virtual base::ProcessHandle GetHandle() OVERRIDE; |
51 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) OVERRIDE; | 51 virtual TransportDIB* GetTransportDIB(TransportDIB::Id dib_id) OVERRIDE; |
52 virtual void SetCompositingSurface( | |
53 int render_widget_id, | |
54 gfx::PluginWindowHandle compositing_surface) OVERRIDE; | |
55 virtual int GetID() const OVERRIDE; | 52 virtual int GetID() const OVERRIDE; |
56 virtual bool HasConnection() const OVERRIDE; | 53 virtual bool HasConnection() const OVERRIDE; |
57 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; | 54 virtual void SetIgnoreInputEvents(bool ignore_input_events) OVERRIDE; |
58 virtual bool IgnoreInputEvents() const OVERRIDE; | 55 virtual bool IgnoreInputEvents() const OVERRIDE; |
59 virtual void Attach(IPC::Channel::Listener* listener, | 56 virtual void Attach(IPC::Channel::Listener* listener, |
60 int routing_id) OVERRIDE; | 57 int routing_id) OVERRIDE; |
61 virtual void Release(int listener_id) OVERRIDE; | 58 virtual void Release(int listener_id) OVERRIDE; |
62 virtual void Cleanup() OVERRIDE; | 59 virtual void Cleanup() OVERRIDE; |
63 virtual void ReportExpectingClose(int32 listener_id) OVERRIDE; | 60 virtual void ReportExpectingClose(int32 listener_id) OVERRIDE; |
64 virtual void AddPendingView() OVERRIDE; | 61 virtual void AddPendingView() OVERRIDE; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 private: | 113 private: |
117 // A list of MockRenderProcessHosts created by this object. This list is used | 114 // A list of MockRenderProcessHosts created by this object. This list is used |
118 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 115 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
119 // the destructor and prevent them from being leaked. | 116 // the destructor and prevent them from being leaked. |
120 mutable ScopedVector<MockRenderProcessHost> processes_; | 117 mutable ScopedVector<MockRenderProcessHost> processes_; |
121 | 118 |
122 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 119 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
123 }; | 120 }; |
124 | 121 |
125 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ | 122 #endif // CONTENT_BROWSER_RENDERER_HOST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |