| 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 #include "content/public/test/mock_render_process_host.h" | 5 #include "content/public/test/mock_render_process_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 return base::TimeDelta::FromMilliseconds(0); | 256 return base::TimeDelta::FromMilliseconds(0); |
| 257 } | 257 } |
| 258 | 258 |
| 259 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { | 259 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { |
| 260 } | 260 } |
| 261 | 261 |
| 262 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { | 262 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { |
| 263 return service_registry_.get(); | 263 return service_registry_.get(); |
| 264 } | 264 } |
| 265 | 265 |
| 266 scoped_ptr<base::SharedPersistentMemoryAllocator> | 266 std::unique_ptr<base::SharedPersistentMemoryAllocator> |
| 267 MockRenderProcessHost::TakeMetricsAllocator() { | 267 MockRenderProcessHost::TakeMetricsAllocator() { |
| 268 return nullptr; | 268 return nullptr; |
| 269 } | 269 } |
| 270 | 270 |
| 271 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() | 271 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() |
| 272 const { | 272 const { |
| 273 static base::TimeTicks dummy_time = base::TimeTicks::Now(); | 273 static base::TimeTicks dummy_time = base::TimeTicks::Now(); |
| 274 return dummy_time; | 274 return dummy_time; |
| 275 } | 275 } |
| 276 | 276 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); | 377 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); |
| 378 it != processes_.end(); ++it) { | 378 it != processes_.end(); ++it) { |
| 379 if (*it == host) { | 379 if (*it == host) { |
| 380 processes_.weak_erase(it); | 380 processes_.weak_erase(it); |
| 381 break; | 381 break; |
| 382 } | 382 } |
| 383 } | 383 } |
| 384 } | 384 } |
| 385 | 385 |
| 386 } // namespace content | 386 } // namespace content |
| OLD | NEW |