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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 return false; | 306 return false; |
307 } | 307 } |
308 | 308 |
309 void MockRenderProcessHost::PurgeAndSuspend() {} | 309 void MockRenderProcessHost::PurgeAndSuspend() {} |
310 | 310 |
311 void MockRenderProcessHost::Resume() {} | 311 void MockRenderProcessHost::Resume() {} |
312 | 312 |
313 mojom::Renderer* MockRenderProcessHost::GetRendererInterface() { | 313 mojom::Renderer* MockRenderProcessHost::GetRendererInterface() { |
314 if (!renderer_interface_) { | 314 if (!renderer_interface_) { |
315 renderer_interface_.reset(new mojom::RendererAssociatedPtr); | 315 renderer_interface_.reset(new mojom::RendererAssociatedPtr); |
316 mojo::GetIsolatedProxy(renderer_interface_.get()); | 316 mojo::MakeIsolatedRequest(renderer_interface_.get()); |
317 } | 317 } |
318 return renderer_interface_->get(); | 318 return renderer_interface_->get(); |
319 } | 319 } |
320 | 320 |
321 void MockRenderProcessHost::SetIsNeverSuitableForReuse() { | 321 void MockRenderProcessHost::SetIsNeverSuitableForReuse() { |
322 NOTREACHED(); | 322 NOTREACHED(); |
323 } | 323 } |
324 | 324 |
325 bool MockRenderProcessHost::MayReuseHost() { | 325 bool MockRenderProcessHost::MayReuseHost() { |
326 return true; | 326 return true; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 for (auto it = processes_.begin(); it != processes_.end(); ++it) { | 395 for (auto it = processes_.begin(); it != processes_.end(); ++it) { |
396 if (it->get() == host) { | 396 if (it->get() == host) { |
397 it->release(); | 397 it->release(); |
398 processes_.erase(it); | 398 processes_.erase(it); |
399 break; | 399 break; |
400 } | 400 } |
401 } | 401 } |
402 } | 402 } |
403 | 403 |
404 } // namespace content | 404 } // namespace content |
OLD | NEW |