| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 #endif | 81 #endif |
| 82 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 82 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
| 83 void NotifyTimezoneChange() override; | 83 void NotifyTimezoneChange() override; |
| 84 ServiceRegistry* GetServiceRegistry() override; | 84 ServiceRegistry* GetServiceRegistry() override; |
| 85 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 85 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
| 86 bool SubscribeUniformEnabled() const override; | 86 bool SubscribeUniformEnabled() const override; |
| 87 void OnAddSubscription(unsigned int target) override; | 87 void OnAddSubscription(unsigned int target) override; |
| 88 void OnRemoveSubscription(unsigned int target) override; | 88 void OnRemoveSubscription(unsigned int target) override; |
| 89 void SendUpdateValueState( | 89 void SendUpdateValueState( |
| 90 unsigned int target, const gpu::ValueState& state) override; | 90 unsigned int target, const gpu::ValueState& state) override; |
| 91 #if defined(ENABLE_BROWSER_CDMS) |
| 92 media::BrowserCdm* GetBrowserCdm(int render_frame_id, |
| 93 int cdm_id) const override; |
| 94 #endif |
| 91 | 95 |
| 92 // IPC::Sender via RenderProcessHost. | 96 // IPC::Sender via RenderProcessHost. |
| 93 bool Send(IPC::Message* msg) override; | 97 bool Send(IPC::Message* msg) override; |
| 94 | 98 |
| 95 // IPC::Listener via RenderProcessHost. | 99 // IPC::Listener via RenderProcessHost. |
| 96 bool OnMessageReceived(const IPC::Message& msg) override; | 100 bool OnMessageReceived(const IPC::Message& msg) override; |
| 97 void OnChannelConnected(int32 peer_pid) override; | 101 void OnChannelConnected(int32 peer_pid) override; |
| 98 | 102 |
| 99 // Attaches the factory object so we can remove this object in its destructor | 103 // Attaches the factory object so we can remove this object in its destructor |
| 100 // and prevent MockRenderProcessHostFacotry from deleting it. | 104 // and prevent MockRenderProcessHostFacotry from deleting it. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 158 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
| 155 // the destructor and prevent them from being leaked. | 159 // the destructor and prevent them from being leaked. |
| 156 mutable ScopedVector<MockRenderProcessHost> processes_; | 160 mutable ScopedVector<MockRenderProcessHost> processes_; |
| 157 | 161 |
| 158 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 162 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
| 159 }; | 163 }; |
| 160 | 164 |
| 161 } // namespace content | 165 } // namespace content |
| 162 | 166 |
| 163 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 167 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |