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

Unified Diff: net/quic/quic_client_push_promise_index.cc

Issue 1692253004: QUIC - chromium server push support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review feedback round 2. Created 4 years, 10 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
index 0bebf0dcbf281af6c62a8bcf9895b1ccd7ebfd31..1c49960b54286cfd9d4371da6edb551c0c17bb6f 100644
--- a/net/quic/quic_client_push_promise_index.cc
+++ b/net/quic/quic_client_push_promise_index.cc
@@ -17,6 +17,15 @@ 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,
« 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