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 <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/base_paths.h" | 11 #include "base/base_paths.h" |
12 #include "base/debug/trace_event.h" | 12 #include "base/debug/trace_event.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/prefs/pref_member.h" | 16 #include "base/prefs/pref_member.h" |
17 #include "base/prefs/pref_service.h" | 17 #include "base/prefs/pref_service.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/string_split.h" | 19 #include "base/strings/string_split.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
22 #include "chrome/browser/content_settings/cookie_settings.h" | 22 #include "chrome/browser/content_settings/cookie_settings.h" |
23 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 23 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
24 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 24 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
25 #include "chrome/browser/google/google_util.h" | |
26 #include "chrome/browser/net/chrome_extensions_network_delegate.h" | 25 #include "chrome/browser/net/chrome_extensions_network_delegate.h" |
27 #include "chrome/browser/net/client_hints.h" | 26 #include "chrome/browser/net/client_hints.h" |
28 #include "chrome/browser/net/connect_interceptor.h" | 27 #include "chrome/browser/net/connect_interceptor.h" |
29 #include "chrome/browser/performance_monitor/performance_monitor.h" | 28 #include "chrome/browser/performance_monitor/performance_monitor.h" |
30 #include "chrome/browser/prerender/prerender_tracker.h" | 29 #include "chrome/browser/prerender/prerender_tracker.h" |
31 #include "chrome/browser/profiles/profile_manager.h" | 30 #include "chrome/browser/profiles/profile_manager.h" |
32 #include "chrome/browser/task_manager/task_manager.h" | 31 #include "chrome/browser/task_manager/task_manager.h" |
33 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
34 #include "chrome/common/url_constants.h" | 33 #include "chrome/common/url_constants.h" |
35 #include "components/data_reduction_proxy/browser/data_reduction_proxy_metrics.h
" | 34 #include "components/data_reduction_proxy/browser/data_reduction_proxy_metrics.h
" |
36 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" | 35 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" |
37 #include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.
h" | 36 #include "components/data_reduction_proxy/browser/data_reduction_proxy_protocol.
h" |
38 #include "components/domain_reliability/monitor.h" | 37 #include "components/domain_reliability/monitor.h" |
| 38 #include "components/google/core/browser/google_util.h" |
39 #include "content/public/browser/browser_thread.h" | 39 #include "content/public/browser/browser_thread.h" |
40 #include "content/public/browser/render_frame_host.h" | 40 #include "content/public/browser/render_frame_host.h" |
41 #include "content/public/browser/render_view_host.h" | 41 #include "content/public/browser/render_view_host.h" |
42 #include "content/public/browser/resource_request_info.h" | 42 #include "content/public/browser/resource_request_info.h" |
43 #include "extensions/common/constants.h" | 43 #include "extensions/common/constants.h" |
44 #include "net/base/host_port_pair.h" | 44 #include "net/base/host_port_pair.h" |
45 #include "net/base/net_errors.h" | 45 #include "net/base/net_errors.h" |
46 #include "net/base/net_log.h" | 46 #include "net/base/net_log.h" |
47 #include "net/cookies/canonical_cookie.h" | 47 #include "net/cookies/canonical_cookie.h" |
48 #include "net/cookies/cookie_options.h" | 48 #include "net/cookies/cookie_options.h" |
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 data_reduction_proxy::DataReductionProxyRequestType request_type) { | 805 data_reduction_proxy::DataReductionProxyRequestType request_type) { |
806 DCHECK_GE(received_content_length, 0); | 806 DCHECK_GE(received_content_length, 0); |
807 DCHECK_GE(original_content_length, 0); | 807 DCHECK_GE(original_content_length, 0); |
808 StoreAccumulatedContentLength(received_content_length, | 808 StoreAccumulatedContentLength(received_content_length, |
809 original_content_length, | 809 original_content_length, |
810 request_type, | 810 request_type, |
811 reinterpret_cast<Profile*>(profile_)); | 811 reinterpret_cast<Profile*>(profile_)); |
812 received_content_length_ += received_content_length; | 812 received_content_length_ += received_content_length; |
813 original_content_length_ += original_content_length; | 813 original_content_length_ += original_content_length; |
814 } | 814 } |
OLD | NEW |