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

Unified Diff: net/quic/quic_client_push_promise_index.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_client_push_promise_index.h ('k') | net/quic/quic_client_push_promise_index_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_client_push_promise_index.cc
diff --git a/net/quic/quic_client_push_promise_index.cc b/net/quic/quic_client_push_promise_index.cc
deleted file mode 100644
index e62f1f07c386894fa05c0eb467e55d71543ad755..0000000000000000000000000000000000000000
--- a/net/quic/quic_client_push_promise_index.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2016 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_client_push_promise_index.h"
-
-#include <string>
-
-#include "net/quic/quic_client_promised_info.h"
-#include "net/quic/spdy_utils.h"
-
-using net::SpdyHeaderBlock;
-using std::string;
-
-namespace net {
-
-QuicClientPushPromiseIndex::QuicClientPushPromiseIndex() {}
-
-QuicClientPushPromiseIndex::~QuicClientPushPromiseIndex() {}
-
-QuicClientPushPromiseIndex::TryHandle::~TryHandle() {}
-
-QuicClientPromisedInfo* QuicClientPushPromiseIndex::GetPromised(
- const string& url) {
- QuicPromisedByUrlMap::iterator it = promised_by_url_.find(url);
- if (it == promised_by_url_.end()) {
- return nullptr;
- }
- return it->second;
-}
-
-QuicAsyncStatus QuicClientPushPromiseIndex::Try(
- const SpdyHeaderBlock& request,
- QuicClientPushPromiseIndex::Delegate* delegate,
- TryHandle** handle) {
- string url(SpdyUtils::GetUrlFromHeaderBlock(request));
- QuicPromisedByUrlMap::iterator it = promised_by_url_.find(url);
- if (it != promised_by_url_.end()) {
- QuicClientPromisedInfo* promised = it->second;
- QuicAsyncStatus rv = promised->HandleClientRequest(request, delegate);
- if (rv == QUIC_PENDING) {
- *handle = promised;
- }
- return rv;
- }
- return QUIC_FAILURE;
-}
-
-} // namespace net
« no previous file with comments | « net/quic/quic_client_push_promise_index.h ('k') | net/quic/quic_client_push_promise_index_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698