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 "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
10 #include "net/base/load_flags.h" | 10 #include "net/base/load_flags.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 const GURL& first_party_for_cookies) const { | 169 const GURL& first_party_for_cookies) const { |
170 TRACE_EVENT0(kNetTracingCategory, "NetworkDelegate::CanEnablePrivacyMode"); | 170 TRACE_EVENT0(kNetTracingCategory, "NetworkDelegate::CanEnablePrivacyMode"); |
171 DCHECK(CalledOnValidThread()); | 171 DCHECK(CalledOnValidThread()); |
172 return OnCanEnablePrivacyMode(url, first_party_for_cookies); | 172 return OnCanEnablePrivacyMode(url, first_party_for_cookies); |
173 } | 173 } |
174 | 174 |
175 bool NetworkDelegate::AreExperimentalCookieFeaturesEnabled() const { | 175 bool NetworkDelegate::AreExperimentalCookieFeaturesEnabled() const { |
176 return OnAreExperimentalCookieFeaturesEnabled(); | 176 return OnAreExperimentalCookieFeaturesEnabled(); |
177 } | 177 } |
178 | 178 |
179 bool NetworkDelegate::AreStrictSecureCookiesEnabled() const { | |
180 return OnAreStrictSecureCookiesEnabled(); | |
181 } | |
182 | |
183 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader( | 179 bool NetworkDelegate::CancelURLRequestWithPolicyViolatingReferrerHeader( |
184 const URLRequest& request, | 180 const URLRequest& request, |
185 const GURL& target_url, | 181 const GURL& target_url, |
186 const GURL& referrer_url) const { | 182 const GURL& referrer_url) const { |
187 DCHECK(CalledOnValidThread()); | 183 DCHECK(CalledOnValidThread()); |
188 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 184 return OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
189 request, target_url, referrer_url); | 185 request, target_url, referrer_url); |
190 } | 186 } |
191 | 187 |
192 void NetworkDelegate::OnResponseStarted(URLRequest* request, int net_error) { | 188 void NetworkDelegate::OnResponseStarted(URLRequest* request, int net_error) { |
(...skipping 10 matching lines...) Expand all Loading... |
203 int net_error) { | 199 int net_error) { |
204 OnCompleted(request, started); | 200 OnCompleted(request, started); |
205 } | 201 } |
206 | 202 |
207 // Deprecated. | 203 // Deprecated. |
208 void NetworkDelegate::OnCompleted(URLRequest* request, bool started) { | 204 void NetworkDelegate::OnCompleted(URLRequest* request, bool started) { |
209 NOTREACHED(); | 205 NOTREACHED(); |
210 } | 206 } |
211 | 207 |
212 } // namespace net | 208 } // namespace net |
OLD | NEW |