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

Side by Side Diff: net/tools/quic/quic_in_memory_cache.cc

Issue 2141993002: Remove many-many SpdyMajorVersion and NextProto arguments and members. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove OnSynStream() and OnSynReply(). 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 unified diff | Download patch
« no previous file with comments | « net/tools/flip_server/spdy_interface_test.cc ('k') | net/tools/quic/quic_simple_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/tools/quic/quic_in_memory_cache.h" 5 #include "net/tools/quic/quic_in_memory_cache.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/files/file_enumerator.h" 9 #include "base/files/file_enumerator.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 http_headers_->EnumerateHeader(&iter, x_push_url, push_url.get())) { 62 http_headers_->EnumerateHeader(&iter, x_push_url, push_url.get())) {
63 push_urls_.push_back(StringPiece(*push_url)); 63 push_urls_.push_back(StringPiece(*push_url));
64 push_url_values_.push_back(std::move(push_url)); 64 push_url_values_.push_back(std::move(push_url));
65 push_url.reset(new string()); 65 push_url.reset(new string());
66 } 66 }
67 } 67 }
68 68
69 body_ = StringPiece(file_contents_.data() + headers_end, 69 body_ = StringPiece(file_contents_.data() + headers_end,
70 file_contents_.size() - headers_end); 70 file_contents_.size() - headers_end);
71 71
72 CreateSpdyHeadersFromHttpResponse(*http_headers_, HTTP2, &spdy_headers_); 72 CreateSpdyHeadersFromHttpResponse(*http_headers_, &spdy_headers_);
73 } 73 }
74 74
75 private: 75 private:
76 scoped_refptr<HttpResponseHeaders> http_headers_; 76 scoped_refptr<HttpResponseHeaders> http_headers_;
77 string url_; 77 string url_;
78 list<std::unique_ptr<string>> push_url_values_; 78 list<std::unique_ptr<string>> push_url_values_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(ResourceFileImpl); 80 DISALLOW_COPY_AND_ASSIGN(ResourceFileImpl);
81 }; 81 };
82 82
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 for (auto it = resource_range.first; it != resource_range.second; ++it) { 344 for (auto it = resource_range.first; it != resource_range.second; ++it) {
345 ServerPushInfo push_resource = it->second; 345 ServerPushInfo push_resource = it->second;
346 if (push_resource.request_url.spec() == resource.request_url.spec()) { 346 if (push_resource.request_url.spec() == resource.request_url.spec()) {
347 return true; 347 return true;
348 } 348 }
349 } 349 }
350 return false; 350 return false;
351 } 351 }
352 352
353 } // namespace net 353 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/flip_server/spdy_interface_test.cc ('k') | net/tools/quic/quic_simple_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698