| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool IsForGuestsOnly() const override; | 50 bool IsForGuestsOnly() const override; |
| 51 StoragePartition* GetStoragePartition() const override; | 51 StoragePartition* GetStoragePartition() const override; |
| 52 virtual void AddWord(const base::string16& word); | 52 virtual void AddWord(const base::string16& word); |
| 53 bool Shutdown(int exit_code, bool wait) override; | 53 bool Shutdown(int exit_code, bool wait) override; |
| 54 bool FastShutdownIfPossible() override; | 54 bool FastShutdownIfPossible() override; |
| 55 bool FastShutdownStarted() const override; | 55 bool FastShutdownStarted() const override; |
| 56 base::ProcessHandle GetHandle() const override; | 56 base::ProcessHandle GetHandle() const override; |
| 57 bool IsReady() const override; |
| 57 int GetID() const override; | 58 int GetID() const override; |
| 58 bool HasConnection() const override; | 59 bool HasConnection() const override; |
| 59 void SetIgnoreInputEvents(bool ignore_input_events) override; | 60 void SetIgnoreInputEvents(bool ignore_input_events) override; |
| 60 bool IgnoreInputEvents() const override; | 61 bool IgnoreInputEvents() const override; |
| 61 void Cleanup() override; | 62 void Cleanup() override; |
| 62 void AddPendingView() override; | 63 void AddPendingView() override; |
| 63 void RemovePendingView() override; | 64 void RemovePendingView() override; |
| 64 void SetSuddenTerminationAllowed(bool allowed) override; | 65 void SetSuddenTerminationAllowed(bool allowed) override; |
| 65 bool SuddenTerminationAllowed() const override; | 66 bool SuddenTerminationAllowed() const override; |
| 66 BrowserContext* GetBrowserContext() const override; | 67 BrowserContext* GetBrowserContext() const override; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // 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 |
| 160 // the destructor and prevent them from being leaked. | 161 // the destructor and prevent them from being leaked. |
| 161 mutable ScopedVector<MockRenderProcessHost> processes_; | 162 mutable ScopedVector<MockRenderProcessHost> processes_; |
| 162 | 163 |
| 163 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 164 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace content | 167 } // namespace content |
| 167 | 168 |
| 168 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 169 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |