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

Unified Diff: net/base/socket_performance_watcher.cc

Issue 1831383002: Add SocketWatcherFactory as a helper class to NQE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed rsleevi comments Created 4 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
Index: net/base/socket_performance_watcher.cc
diff --git a/net/base/socket_performance_watcher.cc b/net/base/socket_performance_watcher.cc
deleted file mode 100644
index aa0dab3b03c9476a8d099bde13e15e9b65668850..0000000000000000000000000000000000000000
--- a/net/base/socket_performance_watcher.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2015 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 "net/base/socket_performance_watcher.h"
-
-#include "base/logging.h"
-
-namespace net {
-
-SocketPerformanceWatcher::SocketPerformanceWatcher(
- const SocketPerformanceWatcherFactory::Protocol protocol,
- SocketPerformanceWatcherFactory* socket_performance_watcher_factory)
- : protocol_(protocol),
- socket_performance_watcher_factory_(socket_performance_watcher_factory) {
- DCHECK(socket_performance_watcher_factory_);
-
- switch (protocol) {
- case SocketPerformanceWatcherFactory::PROTOCOL_TCP:
- case SocketPerformanceWatcherFactory::PROTOCOL_QUIC:
- return;
- default:
- NOTREACHED();
- }
-}
-
-SocketPerformanceWatcher::~SocketPerformanceWatcher() {}
-
-void SocketPerformanceWatcher::OnUpdatedRTTAvailable(
- const base::TimeDelta& rtt) const {
- socket_performance_watcher_factory_->OnUpdatedRTTAvailable(protocol_, rtt);
-}
-
-} // namespace net

Powered by Google App Engine
This is Rietveld 408576698