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

Unified Diff: src/byte_counter.h

Issue 6250171: cashew: reset local counter on plan transition (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: ers review comments Created 9 years, 10 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
« no previous file with comments | « no previous file | src/data_plan.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/byte_counter.h
diff --git a/src/byte_counter.h b/src/byte_counter.h
index f9346071dfad1c032e18159819d94467af369fa1..d225d06a142552919b2231f6234e4acc31c9b91a 100644
--- a/src/byte_counter.h
+++ b/src/byte_counter.h
@@ -23,9 +23,11 @@ class ByteCounter {
// received bytes
virtual uint64 GetRxBytes() const = 0;
+ virtual void SetRxBytes(uint64 rx_bytes) = 0;
// transmitted bytes
virtual uint64 GetTxBytes() const = 0;
+ virtual void SetTxBytes(uint64 tx_bytes) = 0;
// set delegate interface that will receive counter updates
// it's ok to clear this by setting it to NULL
@@ -37,7 +39,7 @@ class ByteCounter {
static ByteCounter* NewByteCounter(const std::string& interface);
};
-// interface for delegates
+// interface to be implemented by delegates
class ByteCounterDelegate {
public:
virtual ~ByteCounterDelegate() {}
« no previous file with comments | « no previous file | src/data_plan.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698