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

Side by Side Diff: net/http/http_cache_transaction.cc

Issue 469993008: Rename Chromium-Resource-Freshness header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | net/http/http_cache_unittest.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/http/http_cache_transaction.h" 5 #include "net/http/http_cache_transaction.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_POSIX) 9 #if defined(OS_POSIX)
10 #include <unistd.h> 10 #include <unistd.h>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "net/ssl/ssl_cert_request_info.h" 45 #include "net/ssl/ssl_cert_request_info.h"
46 #include "net/ssl/ssl_config_service.h" 46 #include "net/ssl/ssl_config_service.h"
47 47
48 using base::Time; 48 using base::Time;
49 using base::TimeDelta; 49 using base::TimeDelta;
50 using base::TimeTicks; 50 using base::TimeTicks;
51 51
52 namespace { 52 namespace {
53 53
54 // TODO(ricea): Move this to HttpResponseHeaders once it is standardised. 54 // TODO(ricea): Move this to HttpResponseHeaders once it is standardised.
55 static const char kFreshnessHeader[] = "Chromium-Resource-Freshness"; 55 static const char kFreshnessHeader[] = "Resource-Freshness";
56 56
57 // Stores data relevant to the statistics of writing and reading entire 57 // Stores data relevant to the statistics of writing and reading entire
58 // certificate chains using DiskBasedCertCache. |num_pending_ops| is the number 58 // certificate chains using DiskBasedCertCache. |num_pending_ops| is the number
59 // of certificates in the chain that have pending operations in the 59 // of certificates in the chain that have pending operations in the
60 // DiskBasedCertCache. |start_time| is the time that the read and write 60 // DiskBasedCertCache. |start_time| is the time that the read and write
61 // commands began being issued to the DiskBasedCertCache. 61 // commands began being issued to the DiskBasedCertCache.
62 // TODO(brandonsalmon): Remove this when it is no longer necessary to 62 // TODO(brandonsalmon): Remove this when it is no longer necessary to
63 // collect data. 63 // collect data.
64 class SharedChainData : public base::RefCounted<SharedChainData> { 64 class SharedChainData : public base::RefCounted<SharedChainData> {
65 public: 65 public:
(...skipping 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after
2862 default: 2862 default:
2863 NOTREACHED(); 2863 NOTREACHED();
2864 } 2864 }
2865 } 2865 }
2866 2866
2867 void HttpCache::Transaction::OnIOComplete(int result) { 2867 void HttpCache::Transaction::OnIOComplete(int result) {
2868 DoLoop(result); 2868 DoLoop(result);
2869 } 2869 }
2870 2870
2871 } // namespace net 2871 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/http/http_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698