| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 : profile_(NULL), | 286 : profile_(NULL), |
| 287 enable_referrers_(enable_referrers), | 287 enable_referrers_(enable_referrers), |
| 288 enable_do_not_track_(NULL), | 288 enable_do_not_track_(NULL), |
| 289 force_google_safe_search_(NULL), | 289 force_google_safe_search_(NULL), |
| 290 force_youtube_safety_mode_(NULL), | 290 force_youtube_safety_mode_(NULL), |
| 291 #if defined(ENABLE_CONFIGURATION_POLICY) | 291 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 292 url_blacklist_manager_(NULL), | 292 url_blacklist_manager_(NULL), |
| 293 #endif | 293 #endif |
| 294 domain_reliability_monitor_(NULL), | 294 domain_reliability_monitor_(NULL), |
| 295 experimental_web_platform_features_enabled_( | 295 experimental_web_platform_features_enabled_( |
| 296 base::CommandLine::ForCurrentProcess()->HasSwitch( | 296 base::CommandLine::ForCurrentProcess() |
| 297 switches::kEnableExperimentalWebPlatformFeatures)) { | 297 ->HasSwitch(switches::kEnableExperimentalWebPlatformFeatures)), |
| 298 data_use_measurement_( |
| 299 new data_use_measurement::DataUseMeasurementDelegateImp()) { |
| 298 DCHECK(enable_referrers); | 300 DCHECK(enable_referrers); |
| 299 extensions_delegate_.reset( | 301 extensions_delegate_.reset( |
| 300 ChromeExtensionsNetworkDelegate::Create(event_router)); | 302 ChromeExtensionsNetworkDelegate::Create(event_router)); |
| 301 } | 303 } |
| 302 | 304 |
| 303 ChromeNetworkDelegate::~ChromeNetworkDelegate() {} | 305 ChromeNetworkDelegate::~ChromeNetworkDelegate() {} |
| 304 | 306 |
| 305 void ChromeNetworkDelegate::set_extension_info_map( | 307 void ChromeNetworkDelegate::set_extension_info_map( |
| 306 extensions::InfoMap* extension_info_map) { | 308 extensions::InfoMap* extension_info_map) { |
| 307 extensions_delegate_->set_extension_info_map(extension_info_map); | 309 extensions_delegate_->set_extension_info_map(extension_info_map); |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 return experimental_web_platform_features_enabled_; | 700 return experimental_web_platform_features_enabled_; |
| 699 } | 701 } |
| 700 | 702 |
| 701 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 703 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
| 702 const net::URLRequest& request, | 704 const net::URLRequest& request, |
| 703 const GURL& target_url, | 705 const GURL& target_url, |
| 704 const GURL& referrer_url) const { | 706 const GURL& referrer_url) const { |
| 705 ReportInvalidReferrerSend(target_url, referrer_url); | 707 ReportInvalidReferrerSend(target_url, referrer_url); |
| 706 return true; | 708 return true; |
| 707 } | 709 } |
| OLD | NEW |