OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/url_request/url_request_job.h" | 5 #include "net/url_request/url_request_job.h" |
6 | 6 |
| 7 #include "base/histogram.h" |
7 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 9 #include "base/string_util.h" |
9 #include "net/base/auth.h" | 10 #include "net/base/auth.h" |
10 #include "net/base/io_buffer.h" | 11 #include "net/base/io_buffer.h" |
11 #include "net/base/load_flags.h" | 12 #include "net/base/load_flags.h" |
12 #include "net/base/mime_util.h" | 13 #include "net/base/mime_util.h" |
13 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
14 #include "net/http/http_response_headers.h" | 15 #include "net/http/http_response_headers.h" |
15 #include "net/url_request/url_request.h" | 16 #include "net/url_request/url_request.h" |
16 #include "net/url_request/url_request_job_metrics.h" | 17 #include "net/url_request/url_request_job_metrics.h" |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 return; | 835 return; |
835 } | 836 } |
836 | 837 |
837 if (is_compressed_) { | 838 if (is_compressed_) { |
838 COMPRESSION_HISTOGRAM("NoProxy.BytesBeforeCompression", compressed_B); | 839 COMPRESSION_HISTOGRAM("NoProxy.BytesBeforeCompression", compressed_B); |
839 COMPRESSION_HISTOGRAM("NoProxy.BytesAfterCompression", decompressed_B); | 840 COMPRESSION_HISTOGRAM("NoProxy.BytesAfterCompression", decompressed_B); |
840 } else { | 841 } else { |
841 COMPRESSION_HISTOGRAM("NoProxy.ShouldHaveBeenCompressed", decompressed_B); | 842 COMPRESSION_HISTOGRAM("NoProxy.ShouldHaveBeenCompressed", decompressed_B); |
842 } | 843 } |
843 } | 844 } |
OLD | NEW |