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

Unified Diff: src/device.h

Issue 6250171: cashew: reset local counter on plan transition (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: src/device.h
diff --git a/src/device.h b/src/device.h
index 79552344a6f17159f89cff84b799291139cc52aa..4bf287aece3e3c2f667746722ce15ecd3595bba4 100644
--- a/src/device.h
+++ b/src/device.h
@@ -64,6 +64,12 @@ class Device {
// is the byte counter running?
virtual bool ByteCounterRunning() const = 0;
+ // reset byte counter to an arbitrary baseline value
+ // counter will continue to run and increment relative to new baseline
+ // there must be an existing byte counter
+ // |parent_| must already have received at least one update
Eric Shienbrood 2011/02/10 18:47:00 parent_ is in the implementation class, so it's ki
Vince Laviano 2011/02/10 22:29:19 Done.
+ virtual void ResetByteCounter(uint64 rx_bytes, uint64 tx_bytes) = 0;
+
// factory
static Device* NewDevice(Service * const parent,
DBus::Connection& connection, // NOLINT
« src/data_plan.h ('K') | « src/data_plan_unittest.cc ('k') | src/device_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698