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

Unified Diff: net/base/bandwidth_metrics.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « net/base/bandwidth_metrics.h ('k') | net/base/cache_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/bandwidth_metrics.cc
diff --git a/net/base/bandwidth_metrics.cc b/net/base/bandwidth_metrics.cc
deleted file mode 100644
index 0644122d7ddc7dd7e7c0c7049bc3d2db5a0d5f0c..0000000000000000000000000000000000000000
--- a/net/base/bandwidth_metrics.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/lazy_instance.h"
-#include "net/base/bandwidth_metrics.h"
-
-static base::LazyInstance<net::BandwidthMetrics> g_bandwidth_metrics =
- LAZY_INSTANCE_INITIALIZER;
-
-namespace net {
-
-ScopedBandwidthMetrics::ScopedBandwidthMetrics()
- : started_(false) {
-}
-
-ScopedBandwidthMetrics::~ScopedBandwidthMetrics() {
- if (started_)
- g_bandwidth_metrics.Get().StopStream();
-}
-
-void ScopedBandwidthMetrics::StartStream() {
- started_ = true;
- g_bandwidth_metrics.Get().StartStream();
-}
-
-void ScopedBandwidthMetrics::StopStream() {
- started_ = false;
- g_bandwidth_metrics.Get().StopStream();
-}
-
-void ScopedBandwidthMetrics::RecordBytes(int bytes) {
- g_bandwidth_metrics.Get().RecordBytes(bytes);
-}
-
-} // namespace net
« no previous file with comments | « net/base/bandwidth_metrics.h ('k') | net/base/cache_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698