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; |
50 bool IsForGuestsOnly() const override; | 51 bool IsForGuestsOnly() const override; |
51 StoragePartition* GetStoragePartition() const override; | 52 StoragePartition* GetStoragePartition() const override; |
52 virtual void AddWord(const base::string16& word); | 53 virtual void AddWord(const base::string16& word); |
53 bool Shutdown(int exit_code, bool wait) override; | 54 bool Shutdown(int exit_code, bool wait) override; |
54 bool FastShutdownIfPossible() override; | 55 bool FastShutdownIfPossible() override; |
55 bool FastShutdownStarted() const override; | 56 bool FastShutdownStarted() const override; |
56 base::ProcessHandle GetHandle() const override; | 57 base::ProcessHandle GetHandle() const override; |
57 bool IsReady() const override; | 58 bool IsReady() const override; |
58 int GetID() const override; | 59 int GetID() const override; |
59 bool HasConnection() const override; | 60 bool HasConnection() const override; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 161 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
161 // the destructor and prevent them from being leaked. | 162 // the destructor and prevent them from being leaked. |
162 mutable ScopedVector<MockRenderProcessHost> processes_; | 163 mutable ScopedVector<MockRenderProcessHost> processes_; |
163 | 164 |
164 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 165 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
165 }; | 166 }; |
166 | 167 |
167 } // namespace content | 168 } // namespace content |
168 | 169 |
169 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 170 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |