| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 virtual void SetWebRtcLogMessageCallback( | 78 virtual void SetWebRtcLogMessageCallback( |
| 79 base::Callback<void(const std::string&)> callback) OVERRIDE; | 79 base::Callback<void(const std::string&)> callback) OVERRIDE; |
| 80 virtual WebRtcStopRtpDumpCallback StartRtpDump( | 80 virtual WebRtcStopRtpDumpCallback StartRtpDump( |
| 81 bool incoming, | 81 bool incoming, |
| 82 bool outgoing, | 82 bool outgoing, |
| 83 const WebRtcRtpPacketCallback& packet_callback) OVERRIDE; | 83 const WebRtcRtpPacketCallback& packet_callback) OVERRIDE; |
| 84 #endif | 84 #endif |
| 85 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) | 85 virtual void ResumeDeferredNavigation(const GlobalRequestID& request_id) |
| 86 OVERRIDE; | 86 OVERRIDE; |
| 87 virtual void NotifyTimezoneChange() OVERRIDE; | 87 virtual void NotifyTimezoneChange() OVERRIDE; |
| 88 virtual ServiceRegistry* GetServiceRegistry() OVERRIDE; |
| 89 virtual void ActivateMojo() OVERRIDE; |
| 88 | 90 |
| 89 // IPC::Sender via RenderProcessHost. | 91 // IPC::Sender via RenderProcessHost. |
| 90 virtual bool Send(IPC::Message* msg) OVERRIDE; | 92 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 91 | 93 |
| 92 // IPC::Listener via RenderProcessHost. | 94 // IPC::Listener via RenderProcessHost. |
| 93 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 95 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 94 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; | 96 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; |
| 95 | 97 |
| 96 // Attaches the factory object so we can remove this object in its destructor | 98 // Attaches the factory object so we can remove this object in its destructor |
| 97 // and prevent MockRenderProcessHostFacotry from deleting it. | 99 // and prevent MockRenderProcessHostFacotry from deleting it. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 145 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
| 144 // the destructor and prevent them from being leaked. | 146 // the destructor and prevent them from being leaked. |
| 145 mutable ScopedVector<MockRenderProcessHost> processes_; | 147 mutable ScopedVector<MockRenderProcessHost> processes_; |
| 146 | 148 |
| 147 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 149 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 } // namespace content | 152 } // namespace content |
| 151 | 153 |
| 152 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 154 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |