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

Unified Diff: chrome/browser/chrome_net_benchmarking_message_filter.cc

Issue 280383008: Delete benchmarking extension, remove API's ability to enable/disable SPDY (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove benchmarking extension instead Created 6 years, 7 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 | « chrome/browser/chrome_net_benchmarking_message_filter.h ('k') | chrome/common/benchmarking_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_net_benchmarking_message_filter.cc
diff --git a/chrome/browser/chrome_net_benchmarking_message_filter.cc b/chrome/browser/chrome_net_benchmarking_message_filter.cc
index 5e18e5b7bccca0bd7752c4af3fd8dc6069396573..35c771c2e6c93a52728dee02756c71ea7278108b 100644
--- a/chrome/browser/chrome_net_benchmarking_message_filter.cc
+++ b/chrome/browser/chrome_net_benchmarking_message_filter.cc
@@ -19,8 +19,6 @@
#include "net/dns/host_cache.h"
#include "net/dns/host_resolver.h"
#include "net/http/http_cache.h"
-#include "net/http/http_network_layer.h"
-#include "net/http/http_stream_factory.h"
namespace {
@@ -54,7 +52,6 @@ bool ChromeNetBenchmarkingMessageFilter::OnMessageReceived(
IPC_MESSAGE_HANDLER_DELAY_REPLY(ChromeViewHostMsg_ClearCache, OnClearCache)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ClearHostResolverCache,
OnClearHostResolverCache)
- IPC_MESSAGE_HANDLER(ChromeViewHostMsg_EnableSpdy, OnEnableSpdy)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ClearPredictorCache,
OnClearPredictorCache)
IPC_MESSAGE_UNHANDLED(handled = false)
@@ -102,23 +99,6 @@ void ChromeNetBenchmarkingMessageFilter::OnClearHostResolverCache(int* result) {
}
}
-// TODO(lzheng): This only enables spdy over ssl. Enable spdy for http
-// when needed.
-void ChromeNetBenchmarkingMessageFilter::OnEnableSpdy(bool enable) {
- // This function is disabled unless the user has enabled
- // benchmarking extensions.
- if (!CheckBenchmarkingEnabled()) {
- NOTREACHED() << "Received unexpected benchmarking IPC";
- return;
- }
- if (enable) {
- net::HttpStreamFactory::EnableNpnSpdy3();
- net::HttpNetworkLayer::ForceAlternateProtocol();
- } else {
- net::HttpStreamFactory::EnableNpnHttpOnly();
- }
-}
-
void ChromeNetBenchmarkingMessageFilter::OnCloseCurrentConnections() {
// This function is disabled unless the user has enabled
// benchmarking extensions.
« no previous file with comments | « chrome/browser/chrome_net_benchmarking_message_filter.h ('k') | chrome/common/benchmarking_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698