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

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

Issue 1264333002: First step to refactor ServiceWorkerVersion to make event dispatching more modular. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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
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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 return base::TimeDelta::FromMilliseconds(0); 257 return base::TimeDelta::FromMilliseconds(0);
258 } 258 }
259 259
260 void MockRenderProcessHost::ResumeRequestsForView(int route_id) { 260 void MockRenderProcessHost::ResumeRequestsForView(int route_id) {
261 } 261 }
262 262
263 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) { 263 void MockRenderProcessHost::NotifyTimezoneChange(const std::string& zone_id) {
264 } 264 }
265 265
266 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() { 266 ServiceRegistry* MockRenderProcessHost::GetServiceRegistry() {
267 return NULL; 267 return service_registry_.get();
268 } 268 }
269 269
270 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics() 270 const base::TimeTicks& MockRenderProcessHost::GetInitTimeForNavigationMetrics()
271 const { 271 const {
272 static base::TimeTicks dummy_time = base::TimeTicks::Now(); 272 static base::TimeTicks dummy_time = base::TimeTicks::Now();
273 return dummy_time; 273 return dummy_time;
274 } 274 }
275 275
276 bool MockRenderProcessHost::SubscribeUniformEnabled() const { 276 bool MockRenderProcessHost::SubscribeUniformEnabled() const {
277 return false; 277 return false;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 371 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
372 it != processes_.end(); ++it) { 372 it != processes_.end(); ++it) {
373 if (*it == host) { 373 if (*it == host) {
374 processes_.weak_erase(it); 374 processes_.weak_erase(it);
375 break; 375 break;
376 } 376 }
377 } 377 }
378 } 378 }
379 379
380 } // namespace content 380 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698