Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: net/base/network_delegate.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "net/base/load_flags.h" 8 #include "net/base/load_flags.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/url_request/url_request.h" 10 #include "net/url_request/url_request.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 int NetworkDelegate::NotifyBeforeURLRequest( 14 int NetworkDelegate::NotifyBeforeURLRequest(URLRequest* request,
15 URLRequest* request, const CompletionCallback& callback, 15 const CompletionCallback& callback,
16 GURL* new_url) { 16 GURL* new_url) {
17 DCHECK(CalledOnValidThread()); 17 DCHECK(CalledOnValidThread());
18 DCHECK(request); 18 DCHECK(request);
19 DCHECK(!callback.is_null()); 19 DCHECK(!callback.is_null());
20 return OnBeforeURLRequest(request, callback, new_url); 20 return OnBeforeURLRequest(request, callback, new_url);
21 } 21 }
22 22
23 int NetworkDelegate::NotifyBeforeSendHeaders( 23 int NetworkDelegate::NotifyBeforeSendHeaders(URLRequest* request,
24 URLRequest* request, const CompletionCallback& callback, 24 const CompletionCallback& callback,
25 HttpRequestHeaders* headers) { 25 HttpRequestHeaders* headers) {
26 DCHECK(CalledOnValidThread()); 26 DCHECK(CalledOnValidThread());
27 DCHECK(headers); 27 DCHECK(headers);
28 DCHECK(!callback.is_null()); 28 DCHECK(!callback.is_null());
29 return OnBeforeSendHeaders(request, callback, headers); 29 return OnBeforeSendHeaders(request, callback, headers);
30 } 30 }
31 31
32 void NetworkDelegate::NotifySendHeaders(URLRequest* request, 32 void NetworkDelegate::NotifySendHeaders(URLRequest* request,
33 const HttpRequestHeaders& headers) { 33 const HttpRequestHeaders& headers) {
34 DCHECK(CalledOnValidThread()); 34 DCHECK(CalledOnValidThread());
35 OnSendHeaders(request, headers); 35 OnSendHeaders(request, headers);
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 NetworkDelegate::AuthRequiredResponse NetworkDelegate::OnAuthRequired( 188 NetworkDelegate::AuthRequiredResponse NetworkDelegate::OnAuthRequired(
189 URLRequest* request, 189 URLRequest* request,
190 const AuthChallengeInfo& auth_info, 190 const AuthChallengeInfo& auth_info,
191 const AuthCallback& callback, 191 const AuthCallback& callback,
192 AuthCredentials* credentials) { 192 AuthCredentials* credentials) {
193 return AUTH_REQUIRED_RESPONSE_NO_ACTION; 193 return AUTH_REQUIRED_RESPONSE_NO_ACTION;
194 } 194 }
195 195
196 bool NetworkDelegate::OnCanGetCookies(const URLRequest& request, 196 bool NetworkDelegate::OnCanGetCookies(const URLRequest& request,
197 const CookieList& cookie_list) { 197 const CookieList& cookie_list) {
198 return true; 198 return true;
199 } 199 }
200 200
201 bool NetworkDelegate::OnCanSetCookie(const URLRequest& request, 201 bool NetworkDelegate::OnCanSetCookie(const URLRequest& request,
202 const std::string& cookie_line, 202 const std::string& cookie_line,
203 CookieOptions* options) { 203 CookieOptions* options) {
204 return true; 204 return true;
205 } 205 }
206 206
207 bool NetworkDelegate::OnCanAccessFile(const URLRequest& request, 207 bool NetworkDelegate::OnCanAccessFile(const URLRequest& request,
208 const base::FilePath& path) const { 208 const base::FilePath& path) const {
209 return false; 209 return false;
210 } 210 }
211 211
212 bool NetworkDelegate::OnCanThrottleRequest(const URLRequest& request) const { 212 bool NetworkDelegate::OnCanThrottleRequest(const URLRequest& request) const {
213 return false; 213 return false;
214 } 214 }
215 215
216 bool NetworkDelegate::OnCanEnablePrivacyMode( 216 bool NetworkDelegate::OnCanEnablePrivacyMode(
217 const GURL& url, 217 const GURL& url,
218 const GURL& first_party_for_cookies) const { 218 const GURL& first_party_for_cookies) const {
219 return false; 219 return false;
220 } 220 }
221 221
222 int NetworkDelegate::OnBeforeSocketStreamConnect( 222 int NetworkDelegate::OnBeforeSocketStreamConnect(
223 SocketStream* socket, 223 SocketStream* socket,
224 const CompletionCallback& callback) { 224 const CompletionCallback& callback) {
225 return OK; 225 return OK;
226 } 226 }
227 227
228 } // namespace net 228 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698