| 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 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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" |
| 49 #include "net/http/http_request_headers.h" | 49 #include "net/http/http_request_headers.h" |
| 50 #include "net/http/http_response_headers.h" | 50 #include "net/http/http_response_headers.h" |
| 51 #include "net/http/http_status_code.h" | 51 #include "net/http/http_status_code.h" |
| 52 #include "net/log/net_log.h" | 52 #include "net/log/net_log.h" |
| 53 #include "net/url_request/url_request.h" | 53 #include "net/url_request/url_request.h" |
| 54 | 54 |
| 55 #if defined(OS_ANDROID) | 55 #if defined(OS_ANDROID) |
| 56 #include "chrome/browser/io_thread.h" | 56 #include "chrome/browser/io_thread.h" |
| 57 #include "chrome/browser/precache/precache_manager_factory.h" |
| 57 #include "components/precache/content/precache_manager.h" | 58 #include "components/precache/content/precache_manager.h" |
| 58 #include "components/precache/content/precache_manager_factory.h" | |
| 59 #endif | 59 #endif |
| 60 | 60 |
| 61 #if defined(OS_CHROMEOS) | 61 #if defined(OS_CHROMEOS) |
| 62 #include "base/sys_info.h" | 62 #include "base/sys_info.h" |
| 63 #include "chrome/common/chrome_switches.h" | 63 #include "chrome/common/chrome_switches.h" |
| 64 #endif | 64 #endif |
| 65 | 65 |
| 66 #if defined(ENABLE_CONFIGURATION_POLICY) | 66 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 67 #include "components/policy/core/browser/url_blacklist_manager.h" | 67 #include "components/policy/core/browser/url_blacklist_manager.h" |
| 68 #endif | 68 #endif |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 return experimental_web_platform_features_enabled_; | 707 return experimental_web_platform_features_enabled_; |
| 708 } | 708 } |
| 709 | 709 |
| 710 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 710 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
| 711 const net::URLRequest& request, | 711 const net::URLRequest& request, |
| 712 const GURL& target_url, | 712 const GURL& target_url, |
| 713 const GURL& referrer_url) const { | 713 const GURL& referrer_url) const { |
| 714 ReportInvalidReferrerSend(target_url, referrer_url); | 714 ReportInvalidReferrerSend(target_url, referrer_url); |
| 715 return true; | 715 return true; |
| 716 } | 716 } |
| OLD | NEW |