Chromium Code Reviews| 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 "base/location.h" | 7 #include "build/build_config.h" // For OS_POSIX |
| 8 #include "base/single_thread_task_runner.h" | |
| 9 #include "base/thread_task_runner_handle.h" | |
| 10 #include "build/build_config.h" | |
| 11 | 8 |
| 12 #if defined(OS_POSIX) | 9 #if defined(OS_POSIX) |
| 13 #include <unistd.h> | 10 #include <unistd.h> |
| 14 #endif | 11 #endif |
| 15 | 12 |
| 16 #include <algorithm> | 13 #include <algorithm> |
| 17 #include <string> | 14 #include <string> |
| 18 | 15 |
| 19 #include "base/bind.h" | 16 #include "base/bind.h" |
| 20 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
| 21 #include "base/format_macros.h" | 18 #include "base/format_macros.h" |
| 22 #include "base/memory/ref_counted.h" | 19 #include "base/location.h" |
| 23 #include "base/memory/scoped_ptr.h" | |
| 24 #include "base/metrics/field_trial.h" | |
| 25 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
| 26 #include "base/metrics/sparse_histogram.h" | 21 #include "base/metrics/sparse_histogram.h" |
| 27 #include "base/profiler/scoped_tracker.h" | 22 #include "base/profiler/scoped_tracker.h" |
| 28 #include "base/rand_util.h" | 23 #include "base/single_thread_task_runner.h" |
|
gavinp
2015/06/17 13:56:14
!!! Wow.
Adam Rice
2015/06/19 07:00:00
Yes.
| |
| 29 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.h" // For HexEncode. |
| 30 #include "base/strings/string_piece.h" | 25 #include "base/strings/string_piece.h" |
| 31 #include "base/strings/string_util.h" | 26 #include "base/strings/string_util.h" // For LowerCaseEqualsASCII. |
| 32 #include "base/strings/stringprintf.h" | 27 #include "base/strings/stringprintf.h" |
| 28 #include "base/thread_task_runner_handle.h" | |
| 33 #include "base/time/clock.h" | 29 #include "base/time/clock.h" |
| 34 #include "base/time/time.h" | |
| 35 #include "base/values.h" | 30 #include "base/values.h" |
| 36 #include "net/base/completion_callback.h" | 31 #include "net/base/auth.h" |
| 32 #include "net/base/io_buffer.h" | |
| 37 #include "net/base/io_buffer.h" | 33 #include "net/base/io_buffer.h" |
| 38 #include "net/base/load_flags.h" | 34 #include "net/base/load_flags.h" |
| 39 #include "net/base/load_timing_info.h" | 35 #include "net/base/load_timing_info.h" |
| 40 #include "net/base/net_errors.h" | 36 #include "net/base/net_errors.h" |
| 41 #include "net/base/upload_data_stream.h" | 37 #include "net/base/upload_data_stream.h" |
| 42 #include "net/cert/cert_status_flags.h" | 38 #include "net/cert/cert_status_flags.h" |
| 39 #include "net/cert/x509_certificate.h" | |
| 43 #include "net/disk_cache/disk_cache.h" | 40 #include "net/disk_cache/disk_cache.h" |
| 44 #include "net/http/disk_based_cert_cache.h" | 41 #include "net/http/disk_based_cert_cache.h" |
| 45 #include "net/http/http_network_session.h" | 42 #include "net/http/http_network_session.h" |
| 46 #include "net/http/http_request_info.h" | 43 #include "net/http/http_request_info.h" |
| 47 #include "net/http/http_response_headers.h" | |
| 48 #include "net/http/http_transaction.h" | |
| 49 #include "net/http/http_util.h" | 44 #include "net/http/http_util.h" |
| 50 #include "net/http/partial_data.h" | |
| 51 #include "net/log/net_log.h" | |
| 52 #include "net/ssl/ssl_cert_request_info.h" | 45 #include "net/ssl/ssl_cert_request_info.h" |
| 53 #include "net/ssl/ssl_config_service.h" | 46 #include "net/ssl/ssl_config_service.h" |
| 54 | 47 |
| 55 using base::Time; | 48 using base::Time; |
| 56 using base::TimeDelta; | 49 using base::TimeDelta; |
| 57 using base::TimeTicks; | 50 using base::TimeTicks; |
| 58 | 51 |
| 59 namespace net { | 52 namespace net { |
| 60 | 53 |
| 61 namespace { | 54 namespace { |
| (...skipping 2921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2983 default: | 2976 default: |
| 2984 NOTREACHED(); | 2977 NOTREACHED(); |
| 2985 } | 2978 } |
| 2986 } | 2979 } |
| 2987 | 2980 |
| 2988 void HttpCache::Transaction::OnIOComplete(int result) { | 2981 void HttpCache::Transaction::OnIOComplete(int result) { |
| 2989 DoLoop(result); | 2982 DoLoop(result); |
| 2990 } | 2983 } |
| 2991 | 2984 |
| 2992 } // namespace net | 2985 } // namespace net |
| OLD | NEW |