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 void EnableAecDump(const base::FilePath& file) override; | 76 void EnableAecDump(const base::FilePath& file) override; |
77 void DisableAecDump() override; | 77 void DisableAecDump() override; |
78 void SetWebRtcLogMessageCallback( | 78 void SetWebRtcLogMessageCallback( |
79 base::Callback<void(const std::string&)> callback) override; | 79 base::Callback<void(const std::string&)> callback) override; |
80 WebRtcStopRtpDumpCallback StartRtpDump( | 80 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 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 85 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
86 void NotifyTimezoneChange() override; | 86 void NotifyTimezoneChange(const std::string& zone_id) override; |
87 ServiceRegistry* GetServiceRegistry() override; | 87 ServiceRegistry* GetServiceRegistry() override; |
88 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 88 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
89 bool SubscribeUniformEnabled() const override; | 89 bool SubscribeUniformEnabled() const override; |
90 void OnAddSubscription(unsigned int target) override; | 90 void OnAddSubscription(unsigned int target) override; |
91 void OnRemoveSubscription(unsigned int target) override; | 91 void OnRemoveSubscription(unsigned int target) override; |
92 void SendUpdateValueState( | 92 void SendUpdateValueState( |
93 unsigned int target, const gpu::ValueState& state) override; | 93 unsigned int target, const gpu::ValueState& state) override; |
94 #if defined(ENABLE_BROWSER_CDMS) | 94 #if defined(ENABLE_BROWSER_CDMS) |
95 media::BrowserCdm* GetBrowserCdm(int render_frame_id, | 95 media::BrowserCdm* GetBrowserCdm(int render_frame_id, |
96 int cdm_id) const override; | 96 int cdm_id) const override; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 159 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
160 // the destructor and prevent them from being leaked. | 160 // the destructor and prevent them from being leaked. |
161 mutable ScopedVector<MockRenderProcessHost> processes_; | 161 mutable ScopedVector<MockRenderProcessHost> processes_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 163 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace content | 166 } // namespace content |
167 | 167 |
168 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 168 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |