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