Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: content/public/test/mock_render_process_host.cc

Issue 2921663003: GRC: Hook up process-level CoordinationUnits in the browser process (Closed)
Patch Set: Buildfix Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 void MockRenderProcessHost::Resume() {} 323 void MockRenderProcessHost::Resume() {}
324 324
325 mojom::Renderer* MockRenderProcessHost::GetRendererInterface() { 325 mojom::Renderer* MockRenderProcessHost::GetRendererInterface() {
326 if (!renderer_interface_) { 326 if (!renderer_interface_) {
327 renderer_interface_.reset(new mojom::RendererAssociatedPtr); 327 renderer_interface_.reset(new mojom::RendererAssociatedPtr);
328 mojo::MakeIsolatedRequest(renderer_interface_.get()); 328 mojo::MakeIsolatedRequest(renderer_interface_.get());
329 } 329 }
330 return renderer_interface_->get(); 330 return renderer_interface_->get();
331 } 331 }
332 332
333 resource_coordinator::ResourceCoordinatorInterface*
334 MockRenderProcessHost::GetProcessResourceCoordinator() {
335 NOTREACHED();
336 return nullptr;
337 }
338
333 void MockRenderProcessHost::SetIsNeverSuitableForReuse() { 339 void MockRenderProcessHost::SetIsNeverSuitableForReuse() {
334 NOTREACHED(); 340 NOTREACHED();
335 } 341 }
336 342
337 bool MockRenderProcessHost::MayReuseHost() { 343 bool MockRenderProcessHost::MayReuseHost() {
338 return true; 344 return true;
339 } 345 }
340 346
341 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { 347 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
342 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); 348 RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 for (auto it = processes_.begin(); it != processes_.end(); ++it) { 421 for (auto it = processes_.begin(); it != processes_.end(); ++it) {
416 if (it->get() == host) { 422 if (it->get() == host) {
417 it->release(); 423 it->release();
418 processes_.erase(it); 424 processes_.erase(it);
419 break; 425 break;
420 } 426 }
421 } 427 }
422 } 428 }
423 429
424 } // namespace content 430 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698