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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |