| 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 void RemoveRoute(int32 routing_id) override; | 40 void RemoveRoute(int32 routing_id) override; |
| 41 void AddObserver(RenderProcessHostObserver* observer) override; | 41 void AddObserver(RenderProcessHostObserver* observer) override; |
| 42 void RemoveObserver(RenderProcessHostObserver* observer) override; | 42 void RemoveObserver(RenderProcessHostObserver* observer) override; |
| 43 void ReceivedBadMessage() override; | 43 void ReceivedBadMessage() override; |
| 44 void WidgetRestored() override; | 44 void WidgetRestored() override; |
| 45 void WidgetHidden() override; | 45 void WidgetHidden() override; |
| 46 int VisibleWidgetCount() const override; | 46 int VisibleWidgetCount() const override; |
| 47 bool IsIsolatedGuest() const override; | 47 bool IsIsolatedGuest() const override; |
| 48 StoragePartition* GetStoragePartition() const override; | 48 StoragePartition* GetStoragePartition() const override; |
| 49 virtual void AddWord(const base::string16& word); | 49 virtual void AddWord(const base::string16& word); |
| 50 bool Shutdown(int exit_code, bool wait) override; |
| 50 bool FastShutdownIfPossible() override; | 51 bool FastShutdownIfPossible() override; |
| 51 bool FastShutdownStarted() const override; | 52 bool FastShutdownStarted() const override; |
| 52 void DumpHandles() override; | 53 void DumpHandles() override; |
| 53 base::ProcessHandle GetHandle() const override; | 54 base::ProcessHandle GetHandle() const override; |
| 54 int GetID() const override; | 55 int GetID() const override; |
| 55 bool HasConnection() const override; | 56 bool HasConnection() const override; |
| 56 void SetIgnoreInputEvents(bool ignore_input_events) override; | 57 void SetIgnoreInputEvents(bool ignore_input_events) override; |
| 57 bool IgnoreInputEvents() const override; | 58 bool IgnoreInputEvents() const override; |
| 58 void Cleanup() override; | 59 void Cleanup() override; |
| 59 void AddPendingView() override; | 60 void AddPendingView() override; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 146 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
| 146 // the destructor and prevent them from being leaked. | 147 // the destructor and prevent them from being leaked. |
| 147 mutable ScopedVector<MockRenderProcessHost> processes_; | 148 mutable ScopedVector<MockRenderProcessHost> processes_; |
| 148 | 149 |
| 149 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 150 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
| 150 }; | 151 }; |
| 151 | 152 |
| 152 } // namespace content | 153 } // namespace content |
| 153 | 154 |
| 154 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 155 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |