| OLD | NEW |
| 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_http_response_cache.h" | 5 #include "net/tools/quic/quic_http_response_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" |
| 11 #include "net/http/http_util.h" | 11 #include "net/http/http_util.h" |
| 12 #include "net/quic/platform/api/quic_bug_tracker.h" | 12 #include "net/quic/platform/api/quic_bug_tracker.h" |
| 13 #include "net/quic/platform/api/quic_logging.h" | 13 #include "net/quic/platform/api/quic_logging.h" |
| 14 #include "net/quic/platform/api/quic_map_util.h" | 14 #include "net/quic/platform/api/quic_map_util.h" |
| 15 #include "net/quic/platform/api/quic_ptr_util.h" | 15 #include "net/quic/platform/api/quic_ptr_util.h" |
| 16 #include "net/quic/platform/api/quic_text_utils.h" | 16 #include "net/quic/platform/api/quic_text_utils.h" |
| 17 #include "net/spdy/spdy_http_utils.h" | 17 #include "net/spdy/chromium/spdy_http_utils.h" |
| 18 | 18 |
| 19 using base::FilePath; | 19 using base::FilePath; |
| 20 using base::IntToString; | 20 using base::IntToString; |
| 21 using std::string; | 21 using std::string; |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 | 24 |
| 25 QuicHttpResponseCache::ServerPushInfo::ServerPushInfo(QuicUrl request_url, | 25 QuicHttpResponseCache::ServerPushInfo::ServerPushInfo(QuicUrl request_url, |
| 26 SpdyHeaderBlock headers, | 26 SpdyHeaderBlock headers, |
| 27 SpdyPriority priority, | 27 SpdyPriority priority, |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 ServerPushInfo push_resource = it->second; | 383 ServerPushInfo push_resource = it->second; |
| 384 if (push_resource.request_url.ToString() == | 384 if (push_resource.request_url.ToString() == |
| 385 resource.request_url.ToString()) { | 385 resource.request_url.ToString()) { |
| 386 return true; | 386 return true; |
| 387 } | 387 } |
| 388 } | 388 } |
| 389 return false; | 389 return false; |
| 390 } | 390 } |
| 391 | 391 |
| 392 } // namespace net | 392 } // namespace net |
| OLD | NEW |