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 22 matching lines...) Expand all Loading... |
33 int bad_msg_count() const { return bad_msg_count_; } | 33 int bad_msg_count() const { return bad_msg_count_; } |
34 | 34 |
35 // RenderProcessHost implementation (public portion). | 35 // RenderProcessHost implementation (public portion). |
36 virtual void EnableSendQueue() OVERRIDE; | 36 virtual void EnableSendQueue() OVERRIDE; |
37 virtual bool Init() OVERRIDE; | 37 virtual bool Init() OVERRIDE; |
38 virtual int GetNextRoutingID() OVERRIDE; | 38 virtual int GetNextRoutingID() OVERRIDE; |
39 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) OVERRIDE; | 39 virtual void AddRoute(int32 routing_id, IPC::Listener* listener) OVERRIDE; |
40 virtual void RemoveRoute(int32 routing_id) OVERRIDE; | 40 virtual void RemoveRoute(int32 routing_id) OVERRIDE; |
41 virtual void AddObserver(RenderProcessHostObserver* observer) OVERRIDE; | 41 virtual void AddObserver(RenderProcessHostObserver* observer) OVERRIDE; |
42 virtual void RemoveObserver(RenderProcessHostObserver* observer) OVERRIDE; | 42 virtual void RemoveObserver(RenderProcessHostObserver* observer) OVERRIDE; |
43 virtual bool WaitForBackingStoreMsg(int render_widget_id, | |
44 const base::TimeDelta& max_delay, | |
45 IPC::Message* msg) OVERRIDE; | |
46 virtual void ReceivedBadMessage() OVERRIDE; | 43 virtual void ReceivedBadMessage() OVERRIDE; |
47 virtual void WidgetRestored() OVERRIDE; | 44 virtual void WidgetRestored() OVERRIDE; |
48 virtual void WidgetHidden() OVERRIDE; | 45 virtual void WidgetHidden() OVERRIDE; |
49 virtual int VisibleWidgetCount() const OVERRIDE; | 46 virtual int VisibleWidgetCount() const OVERRIDE; |
50 virtual bool IsIsolatedGuest() const OVERRIDE; | 47 virtual bool IsIsolatedGuest() const OVERRIDE; |
51 virtual StoragePartition* GetStoragePartition() const OVERRIDE; | 48 virtual StoragePartition* GetStoragePartition() const OVERRIDE; |
52 virtual void AddWord(const base::string16& word); | 49 virtual void AddWord(const base::string16& word); |
53 virtual bool FastShutdownIfPossible() OVERRIDE; | 50 virtual bool FastShutdownIfPossible() OVERRIDE; |
54 virtual bool FastShutdownStarted() const OVERRIDE; | 51 virtual bool FastShutdownStarted() const OVERRIDE; |
55 virtual void DumpHandles() OVERRIDE; | 52 virtual void DumpHandles() OVERRIDE; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 141 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
145 // the destructor and prevent them from being leaked. | 142 // the destructor and prevent them from being leaked. |
146 mutable ScopedVector<MockRenderProcessHost> processes_; | 143 mutable ScopedVector<MockRenderProcessHost> processes_; |
147 | 144 |
148 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 145 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
149 }; | 146 }; |
150 | 147 |
151 } // namespace content | 148 } // namespace content |
152 | 149 |
153 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 150 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |