summaryrefslogtreecommitdiff
path: root/chromium/net/third_party/quiche/src/quic/core/http/spdy_server_push_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/third_party/quiche/src/quic/core/http/spdy_server_push_utils.h')
-rw-r--r--chromium/net/third_party/quiche/src/quic/core/http/spdy_server_push_utils.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/chromium/net/third_party/quiche/src/quic/core/http/spdy_server_push_utils.h b/chromium/net/third_party/quiche/src/quic/core/http/spdy_server_push_utils.h
deleted file mode 100644
index 63cfb886e47..00000000000
--- a/chromium/net/third_party/quiche/src/quic/core/http/spdy_server_push_utils.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2013 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.
-
-#ifndef QUICHE_QUIC_CORE_HTTP_SPDY_SERVER_PUSH_UTILS_H_
-#define QUICHE_QUIC_CORE_HTTP_SPDY_SERVER_PUSH_UTILS_H_
-
-#include "absl/strings/string_view.h"
-#include "quic/platform/api/quic_export.h"
-#include "spdy/core/spdy_header_block.h"
-
-namespace quic {
-
-class QUIC_EXPORT_PRIVATE SpdyServerPushUtils {
- public:
- SpdyServerPushUtils() = delete;
-
- // Returns a canonicalized URL composed from the :scheme, :authority, and
- // :path headers of a PUSH_PROMISE. Returns empty string if the headers do not
- // conform to HTTP/2 spec or if the ":method" header contains a forbidden
- // method for PUSH_PROMISE.
- static std::string GetPromisedUrlFromHeaders(
- const spdy::SpdyHeaderBlock& headers);
-
- // Returns hostname, or empty string if missing.
- static std::string GetPromisedHostNameFromHeaders(
- const spdy::SpdyHeaderBlock& headers);
-
- // Returns true if result of |GetPromisedUrlFromHeaders()| is non-empty
- // and is a well-formed URL.
- static bool PromisedUrlIsValid(const spdy::SpdyHeaderBlock& headers);
-
- // Returns a canonical, valid URL for a PUSH_PROMISE with the specified
- // ":scheme", ":authority", and ":path" header fields, or an empty
- // string if the resulting URL is not valid or supported.
- static std::string GetPushPromiseUrl(absl::string_view scheme,
- absl::string_view authority,
- absl::string_view path);
-};
-
-} // namespace quic
-
-#endif // QUICHE_QUIC_CORE_HTTP_SPDY_SERVER_PUSH_UTILS_H_