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