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

Side by Side Diff: net/quic/core/congestion_control/simulation/actor.cc

Issue 2322233004: Landing Recent QUIC changes until Sun Sep 4 03:41:00 (Closed)
Patch Set: Remove simulation files from the build. Created 4 years, 3 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "net/quic/core/congestion_control/simulation/actor.h"
6 #include "net/quic/core/congestion_control/simulation/simulator.h"
7
8 namespace net {
9 namespace simulation {
10
11 Actor::Actor(Simulator* simulator, std::string name)
12 : simulator_(simulator),
13 clock_(simulator->GetClock()),
14 name_(std::move(name)) {
15 simulator->AddActor(this);
16 }
17
18 Actor::~Actor() {}
19
20 void Actor::Schedule(QuicTime next_tick) {
21 simulator_->Schedule(this, next_tick);
22 }
23
24 void Actor::Unschedule() {
25 simulator_->Unschedule(this);
26 }
27
28 } // namespace simulation
29 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/simulation/actor.h ('k') | net/quic/core/congestion_control/simulation/alarm_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698