| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 void EnableSendQueue() override; | 50 void EnableSendQueue() override; |
| 51 int GetNextRoutingID() override; | 51 int GetNextRoutingID() override; |
| 52 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; | 52 void AddRoute(int32_t routing_id, IPC::Listener* listener) override; |
| 53 void RemoveRoute(int32_t routing_id) override; | 53 void RemoveRoute(int32_t routing_id) override; |
| 54 void AddObserver(RenderProcessHostObserver* observer) override; | 54 void AddObserver(RenderProcessHostObserver* observer) override; |
| 55 void RemoveObserver(RenderProcessHostObserver* observer) override; | 55 void RemoveObserver(RenderProcessHostObserver* observer) override; |
| 56 void ShutdownForBadMessage(CrashReportMode crash_report_mode) override; | 56 void ShutdownForBadMessage(CrashReportMode crash_report_mode) override; |
| 57 void WidgetRestored() override; | 57 void WidgetRestored() override; |
| 58 void WidgetHidden() override; | 58 void WidgetHidden() override; |
| 59 int VisibleWidgetCount() const override; | 59 int VisibleWidgetCount() const override; |
| 60 void AudioStateChanged() override; | |
| 61 bool IsForGuestsOnly() const override; | 60 bool IsForGuestsOnly() const override; |
| 62 StoragePartition* GetStoragePartition() const override; | 61 StoragePartition* GetStoragePartition() const override; |
| 63 virtual void AddWord(const base::string16& word); | 62 virtual void AddWord(const base::string16& word); |
| 64 bool Shutdown(int exit_code, bool wait) override; | 63 bool Shutdown(int exit_code, bool wait) override; |
| 65 bool FastShutdownIfPossible() override; | 64 bool FastShutdownIfPossible() override; |
| 66 bool FastShutdownStarted() const override; | 65 bool FastShutdownStarted() const override; |
| 67 base::ProcessHandle GetHandle() const override; | 66 base::ProcessHandle GetHandle() const override; |
| 68 bool IsReady() const override; | 67 bool IsReady() const override; |
| 69 int GetID() const override; | 68 int GetID() const override; |
| 70 bool HasConnection() const override; | 69 bool HasConnection() const override; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 191 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
| 193 // the destructor and prevent them from being leaked. | 192 // the destructor and prevent them from being leaked. |
| 194 mutable ScopedVector<MockRenderProcessHost> processes_; | 193 mutable ScopedVector<MockRenderProcessHost> processes_; |
| 195 | 194 |
| 196 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 195 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
| 197 }; | 196 }; |
| 198 | 197 |
| 199 } // namespace content | 198 } // namespace content |
| 200 | 199 |
| 201 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 200 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |