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> |
11 #endif | 11 #endif |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/metrics/field_trial.h" | 18 #include "base/metrics/field_trial.h" |
19 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
20 #include "base/rand_util.h" | 20 #include "base/rand_util.h" |
21 #include "base/string_number_conversions.h" | 21 #include "base/string_number_conversions.h" |
22 #include "base/string_util.h" | 22 #include "base/string_util.h" |
23 #include "base/time.h" | 23 #include "base/time.h" |
24 #include "net/base/cert_status_flags.h" | 24 #include "net/cert/cert_status_flags.h" |
Ryan Sleevi
2013/03/28 19:00:52
sort
Paweł Hajdan Jr.
2013/03/28 19:40:06
Done.
| |
25 #include "net/base/completion_callback.h" | 25 #include "net/base/completion_callback.h" |
26 #include "net/base/io_buffer.h" | 26 #include "net/base/io_buffer.h" |
27 #include "net/base/load_flags.h" | 27 #include "net/base/load_flags.h" |
28 #include "net/base/net_errors.h" | 28 #include "net/base/net_errors.h" |
29 #include "net/base/net_log.h" | 29 #include "net/base/net_log.h" |
30 #include "net/base/upload_data_stream.h" | 30 #include "net/base/upload_data_stream.h" |
31 #include "net/disk_cache/disk_cache.h" | 31 #include "net/disk_cache/disk_cache.h" |
32 #include "net/http/http_network_session.h" | 32 #include "net/http/http_network_session.h" |
33 #include "net/http/http_request_info.h" | 33 #include "net/http/http_request_info.h" |
34 #include "net/http/http_response_headers.h" | 34 #include "net/http/http_response_headers.h" |
(...skipping 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2546 } | 2546 } |
2547 | 2547 |
2548 int HttpCache::Transaction::ResetCacheIOStart(int return_value) { | 2548 int HttpCache::Transaction::ResetCacheIOStart(int return_value) { |
2549 DCHECK(cache_io_start_.is_null()); | 2549 DCHECK(cache_io_start_.is_null()); |
2550 if (return_value == ERR_IO_PENDING) | 2550 if (return_value == ERR_IO_PENDING) |
2551 cache_io_start_ = base::TimeTicks::Now(); | 2551 cache_io_start_ = base::TimeTicks::Now(); |
2552 return return_value; | 2552 return return_value; |
2553 } | 2553 } |
2554 | 2554 |
2555 } // namespace net | 2555 } // namespace net |
OLD | NEW |