| 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 "net/base/network_delegate.h" | 5 #include "net/base/network_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/profiler/scoped_tracker.h" | 8 #include "base/profiler/scoped_tracker.h" |
| 9 #include "net/base/load_flags.h" | 9 #include "net/base/load_flags.h" |
| 10 #include "net/base/net_errors.h" | 10 #include "net/base/net_errors.h" |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 const GURL& referrer_url) const { | 235 const GURL& referrer_url) const { |
| 236 DCHECK(CalledOnValidThread()); | 236 DCHECK(CalledOnValidThread()); |
| 237 // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. | 237 // TODO(vadimt): Remove ScopedTracker below once crbug.com/423948 is fixed. |
| 238 tracked_objects::ScopedTracker tracking_profile( | 238 tracked_objects::ScopedTracker tracking_profile( |
| 239 FROM_HERE_WITH_EXPLICIT_FUNCTION( | 239 FROM_HERE_WITH_EXPLICIT_FUNCTION( |
| 240 "423948 NetworkDelegate::OnCancelURLRequestWithPolicy...")); | 240 "423948 NetworkDelegate::OnCancelURLRequestWithPolicy...")); |
| 241 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 241 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
| 242 request, target_url, referrer_url); | 242 request, target_url, referrer_url); |
| 243 } | 243 } |
| 244 | 244 |
| 245 bool NetworkDelegate::IsSupportedMimeType(const std::string& mime_type) const { |
| 246 DCHECK(CalledOnValidThread()); |
| 247 return OnIsSupportedMimeType(mime_type); |
| 248 } |
| 249 |
| 245 } // namespace net | 250 } // namespace net |
| OLD | NEW |