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 29 matching lines...) Expand all Loading... |
40 bool Init() override; | 40 bool Init() override; |
41 int GetNextRoutingID() override; | 41 int GetNextRoutingID() override; |
42 void AddRoute(int32 routing_id, IPC::Listener* listener) override; | 42 void AddRoute(int32 routing_id, IPC::Listener* listener) override; |
43 void RemoveRoute(int32 routing_id) override; | 43 void RemoveRoute(int32 routing_id) override; |
44 void AddObserver(RenderProcessHostObserver* observer) override; | 44 void AddObserver(RenderProcessHostObserver* observer) override; |
45 void RemoveObserver(RenderProcessHostObserver* observer) override; | 45 void RemoveObserver(RenderProcessHostObserver* observer) override; |
46 void ShutdownForBadMessage() override; | 46 void ShutdownForBadMessage() override; |
47 void WidgetRestored() override; | 47 void WidgetRestored() override; |
48 void WidgetHidden() override; | 48 void WidgetHidden() override; |
49 int VisibleWidgetCount() const override; | 49 int VisibleWidgetCount() const override; |
50 void AudioStateChanged() override; | |
51 bool IsForGuestsOnly() const override; | 50 bool IsForGuestsOnly() const override; |
52 StoragePartition* GetStoragePartition() const override; | 51 StoragePartition* GetStoragePartition() const override; |
53 virtual void AddWord(const base::string16& word); | 52 virtual void AddWord(const base::string16& word); |
54 bool Shutdown(int exit_code, bool wait) override; | 53 bool Shutdown(int exit_code, bool wait) override; |
55 bool FastShutdownIfPossible() override; | 54 bool FastShutdownIfPossible() override; |
56 bool FastShutdownStarted() const override; | 55 bool FastShutdownStarted() const override; |
57 base::ProcessHandle GetHandle() const override; | 56 base::ProcessHandle GetHandle() const override; |
58 bool IsReady() const override; | 57 bool IsReady() const override; |
59 int GetID() const override; | 58 int GetID() const override; |
60 bool HasConnection() const override; | 59 bool HasConnection() const override; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 160 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
162 // the destructor and prevent them from being leaked. | 161 // the destructor and prevent them from being leaked. |
163 mutable ScopedVector<MockRenderProcessHost> processes_; | 162 mutable ScopedVector<MockRenderProcessHost> processes_; |
164 | 163 |
165 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 164 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
166 }; | 165 }; |
167 | 166 |
168 } // namespace content | 167 } // namespace content |
169 | 168 |
170 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 169 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |