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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
| 14 #include "base/metrics/persistent_memory_allocator.h" |
14 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
15 #include "content/public/browser/render_process_host.h" | 16 #include "content/public/browser/render_process_host.h" |
16 #include "content/public/browser/render_process_host_factory.h" | 17 #include "content/public/browser/render_process_host_factory.h" |
17 #include "content/public/common/service_registry.h" | 18 #include "content/public/common/service_registry.h" |
18 #include "ipc/ipc_test_sink.h" | 19 #include "ipc/ipc_test_sink.h" |
19 | 20 |
20 class StoragePartition; | 21 class StoragePartition; |
21 | 22 |
22 namespace content { | 23 namespace content { |
23 | 24 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void SetWebRtcLogMessageCallback( | 86 void SetWebRtcLogMessageCallback( |
86 base::Callback<void(const std::string&)> callback) override; | 87 base::Callback<void(const std::string&)> callback) override; |
87 WebRtcStopRtpDumpCallback StartRtpDump( | 88 WebRtcStopRtpDumpCallback StartRtpDump( |
88 bool incoming, | 89 bool incoming, |
89 bool outgoing, | 90 bool outgoing, |
90 const WebRtcRtpPacketCallback& packet_callback) override; | 91 const WebRtcRtpPacketCallback& packet_callback) override; |
91 #endif | 92 #endif |
92 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; | 93 void ResumeDeferredNavigation(const GlobalRequestID& request_id) override; |
93 void NotifyTimezoneChange(const std::string& zone_id) override; | 94 void NotifyTimezoneChange(const std::string& zone_id) override; |
94 ServiceRegistry* GetServiceRegistry() override; | 95 ServiceRegistry* GetServiceRegistry() override; |
| 96 scoped_ptr<base::SharedPersistentMemoryAllocator> TakeMetricsAllocator() |
| 97 override; |
95 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; | 98 const base::TimeTicks& GetInitTimeForNavigationMetrics() const override; |
96 bool SubscribeUniformEnabled() const override; | 99 bool SubscribeUniformEnabled() const override; |
97 void OnAddSubscription(unsigned int target) override; | 100 void OnAddSubscription(unsigned int target) override; |
98 void OnRemoveSubscription(unsigned int target) override; | 101 void OnRemoveSubscription(unsigned int target) override; |
99 void SendUpdateValueState( | 102 void SendUpdateValueState( |
100 unsigned int target, const gpu::ValueState& state) override; | 103 unsigned int target, const gpu::ValueState& state) override; |
101 #if defined(ENABLE_BROWSER_CDMS) | 104 #if defined(ENABLE_BROWSER_CDMS) |
102 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, | 105 scoped_refptr<media::MediaKeys> GetCdm(int render_frame_id, |
103 int cdm_id) const override; | 106 int cdm_id) const override; |
104 #endif | 107 #endif |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // for deleting all MockRenderProcessHosts that have not deleted by a test in | 186 // for deleting all MockRenderProcessHosts that have not deleted by a test in |
184 // the destructor and prevent them from being leaked. | 187 // the destructor and prevent them from being leaked. |
185 mutable ScopedVector<MockRenderProcessHost> processes_; | 188 mutable ScopedVector<MockRenderProcessHost> processes_; |
186 | 189 |
187 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); | 190 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); |
188 }; | 191 }; |
189 | 192 |
190 } // namespace content | 193 } // namespace content |
191 | 194 |
192 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ | 195 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ |
OLD | NEW |