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