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

Unified Diff: net/tools/flip_server/spdy_util.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/tools/flip_server/spdy_util.h ('k') | net/tools/flip_server/streamer_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/spdy_util.cc
diff --git a/net/tools/flip_server/spdy_util.cc b/net/tools/flip_server/spdy_util.cc
deleted file mode 100644
index 311bdb94d4166f8155b5afd232cac8d42fe8b57c..0000000000000000000000000000000000000000
--- a/net/tools/flip_server/spdy_util.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2009 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/tools/flip_server/spdy_util.h"
-
-#include <string>
-
-#include "net/tools/dump_cache/url_to_filename_encoder.h"
-
-namespace net {
-
-bool g_need_to_encode_url = false;
-
-// Encode the URL.
-std::string EncodeURL(std::string uri, std::string host, std::string method) {
- if (!g_need_to_encode_url) {
- // TODO(mbelshe): if uri is fully qualified, need to strip protocol/host.
- return std::string(method + "_" + uri);
- }
-
- std::string filename;
- if (uri[0] == '/') {
- // uri is not fully qualified.
- filename = UrlToFilenameEncoder::Encode(
- "http://" + host + uri, method + "_/", false);
- } else {
- filename = UrlToFilenameEncoder::Encode(uri, method + "_/", false);
- }
- return filename;
-}
-
-} // namespace net
« no previous file with comments | « net/tools/flip_server/spdy_util.h ('k') | net/tools/flip_server/streamer_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698