| 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 34b6072cfa85acb82be0e9d28d7ab4b9c5076312..0000000000000000000000000000000000000000
|
| --- a/net/tools/flip_server/spdy_util.cc
|
| +++ /dev/null
|
| @@ -1,35 +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/flip_server/url_to_filename_encoder.h"
|
| -
|
| -namespace net {
|
| -
|
| -bool g_need_to_encode_url = false;
|
| -
|
| -// Encode the URL.
|
| -std::string EncodeURL(const std::string& uri,
|
| - const std::string& host,
|
| - const 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
|
|
|