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

Unified Diff: net/quic/quic_http_utils.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 5 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/quic/quic_http_utils.h ('k') | net/quic/quic_http_utils_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_http_utils.cc
diff --git a/net/quic/quic_http_utils.cc b/net/quic/quic_http_utils.cc
deleted file mode 100644
index c6dd505f2c64a6ca10cdbf7e2c516f2cf68cdbe6..0000000000000000000000000000000000000000
--- a/net/quic/quic_http_utils.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 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.
-
-#include "net/quic/quic_http_utils.h"
-
-#include <utility>
-
-namespace net {
-
-SpdyPriority ConvertRequestPriorityToQuicPriority(
- const RequestPriority priority) {
- DCHECK_GE(priority, MINIMUM_PRIORITY);
- DCHECK_LE(priority, MAXIMUM_PRIORITY);
- return static_cast<SpdyPriority>(HIGHEST - priority);
-}
-
-NET_EXPORT_PRIVATE RequestPriority
-ConvertQuicPriorityToRequestPriority(SpdyPriority priority) {
- // Handle invalid values gracefully.
- return (priority >= 5) ? IDLE
- : static_cast<RequestPriority>(HIGHEST - priority);
-}
-
-std::unique_ptr<base::Value> QuicRequestNetLogCallback(
- QuicStreamId stream_id,
- const SpdyHeaderBlock* headers,
- SpdyPriority priority,
- NetLogCaptureMode capture_mode) {
- std::unique_ptr<base::DictionaryValue> dict(
- static_cast<base::DictionaryValue*>(
- SpdyHeaderBlockNetLogCallback(headers, capture_mode).release()));
- dict->SetInteger("quic_priority", static_cast<int>(priority));
- dict->SetInteger("quic_stream_id", static_cast<int>(stream_id));
- return std::move(dict);
-}
-
-} // namespace net
« no previous file with comments | « net/quic/quic_http_utils.h ('k') | net/quic/quic_http_utils_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698