OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/net/ios_chrome_network_delegate.h" | 5 #include "ios/chrome/browser/net/ios_chrome_network_delegate.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/debug/alias.h" | 10 #include "base/debug/alias.h" |
11 #include "base/debug/dump_without_crashing.h" | 11 #include "base/debug/dump_without_crashing.h" |
12 #include "base/debug/stack_trace.h" | 12 #include "base/debug/stack_trace.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/metrics/sparse_histogram.h" | 15 #include "base/metrics/sparse_histogram.h" |
16 #include "base/metrics/user_metrics.h" | 16 #include "base/metrics/user_metrics.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/prefs/pref_member.h" | |
19 #include "base/prefs/pref_service.h" | |
20 #include "base/profiler/scoped_tracker.h" | 18 #include "base/profiler/scoped_tracker.h" |
21 #include "components/domain_reliability/monitor.h" | 19 #include "components/domain_reliability/monitor.h" |
| 20 #include "components/prefs/pref_member.h" |
| 21 #include "components/prefs/pref_service.h" |
22 #include "ios/chrome/browser/pref_names.h" | 22 #include "ios/chrome/browser/pref_names.h" |
23 #include "ios/web/public/web_thread.h" | 23 #include "ios/web/public/web_thread.h" |
24 #include "net/base/load_flags.h" | 24 #include "net/base/load_flags.h" |
25 #include "net/base/net_errors.h" | 25 #include "net/base/net_errors.h" |
26 #include "net/cookies/cookie_options.h" | 26 #include "net/cookies/cookie_options.h" |
27 #include "net/http/http_status_code.h" | 27 #include "net/http/http_status_code.h" |
28 #include "net/log/net_log.h" | 28 #include "net/log/net_log.h" |
29 #include "net/url_request/url_request.h" | 29 #include "net/url_request/url_request.h" |
30 | 30 |
31 namespace { | 31 namespace { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 } | 177 } |
178 | 178 |
179 bool IOSChromeNetworkDelegate:: | 179 bool IOSChromeNetworkDelegate:: |
180 OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 180 OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
181 const net::URLRequest& request, | 181 const net::URLRequest& request, |
182 const GURL& target_url, | 182 const GURL& target_url, |
183 const GURL& referrer_url) const { | 183 const GURL& referrer_url) const { |
184 ReportInvalidReferrerSend(target_url, referrer_url); | 184 ReportInvalidReferrerSend(target_url, referrer_url); |
185 return true; | 185 return true; |
186 } | 186 } |
OLD | NEW |