| 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 "chrome/browser/net/chrome_network_delegate.h" | 5 #include "chrome/browser/net/chrome_network_delegate.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "net/base/host_port_pair.h" | 53 #include "net/base/host_port_pair.h" |
| 54 #include "net/base/load_flags.h" | 54 #include "net/base/load_flags.h" |
| 55 #include "net/base/net_errors.h" | 55 #include "net/base/net_errors.h" |
| 56 #include "net/cookies/canonical_cookie.h" | 56 #include "net/cookies/canonical_cookie.h" |
| 57 #include "net/cookies/cookie_options.h" | 57 #include "net/cookies/cookie_options.h" |
| 58 #include "net/http/http_request_headers.h" | 58 #include "net/http/http_request_headers.h" |
| 59 #include "net/http/http_response_headers.h" | 59 #include "net/http/http_response_headers.h" |
| 60 #include "net/http/http_status_code.h" | 60 #include "net/http/http_status_code.h" |
| 61 #include "net/log/net_log.h" | 61 #include "net/log/net_log.h" |
| 62 #include "net/log/net_log_event_type.h" | 62 #include "net/log/net_log_event_type.h" |
| 63 #include "net/log/net_log_with_source.h" |
| 63 #include "net/url_request/url_request.h" | 64 #include "net/url_request/url_request.h" |
| 64 | 65 |
| 65 #if BUILDFLAG(ANDROID_JAVA_UI) | 66 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 66 #include "chrome/browser/io_thread.h" | 67 #include "chrome/browser/io_thread.h" |
| 67 #include "chrome/browser/precache/precache_util.h" | 68 #include "chrome/browser/precache/precache_util.h" |
| 68 #endif | 69 #endif |
| 69 | 70 |
| 70 #if defined(OS_CHROMEOS) | 71 #if defined(OS_CHROMEOS) |
| 71 #include "base/sys_info.h" | 72 #include "base/sys_info.h" |
| 72 #include "chrome/common/chrome_switches.h" | 73 #include "chrome/common/chrome_switches.h" |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 if (!data_use_aggregator_) | 586 if (!data_use_aggregator_) |
| 586 return; | 587 return; |
| 587 | 588 |
| 588 if (is_data_usage_off_the_record_) { | 589 if (is_data_usage_off_the_record_) { |
| 589 data_use_aggregator_->ReportOffTheRecordDataUse(tx_bytes, rx_bytes); | 590 data_use_aggregator_->ReportOffTheRecordDataUse(tx_bytes, rx_bytes); |
| 590 return; | 591 return; |
| 591 } | 592 } |
| 592 | 593 |
| 593 data_use_aggregator_->ReportDataUse(request, tx_bytes, rx_bytes); | 594 data_use_aggregator_->ReportDataUse(request, tx_bytes, rx_bytes); |
| 594 } | 595 } |
| OLD | NEW |