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

Side by Side Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 10944013: Make original_response_headers parameter of NetworkDelegate::OnHeadersReceived const (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 2 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 "chrome/browser/net/chrome_network_delegate.h" 5 #include "chrome/browser/net/chrome_network_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/base_paths.h" 8 #include "base/base_paths.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "chrome/browser/api/prefs/pref_member.h" 10 #include "chrome/browser/api/prefs/pref_member.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 void ChromeNetworkDelegate::OnSendHeaders( 235 void ChromeNetworkDelegate::OnSendHeaders(
236 net::URLRequest* request, 236 net::URLRequest* request,
237 const net::HttpRequestHeaders& headers) { 237 const net::HttpRequestHeaders& headers) {
238 ExtensionWebRequestEventRouter::GetInstance()->OnSendHeaders( 238 ExtensionWebRequestEventRouter::GetInstance()->OnSendHeaders(
239 profile_, extension_info_map_.get(), request, headers); 239 profile_, extension_info_map_.get(), request, headers);
240 } 240 }
241 241
242 int ChromeNetworkDelegate::OnHeadersReceived( 242 int ChromeNetworkDelegate::OnHeadersReceived(
243 net::URLRequest* request, 243 net::URLRequest* request,
244 const net::CompletionCallback& callback, 244 const net::CompletionCallback& callback,
245 net::HttpResponseHeaders* original_response_headers, 245 const net::HttpResponseHeaders* original_response_headers,
246 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) { 246 scoped_refptr<net::HttpResponseHeaders>* override_response_headers) {
247 return ExtensionWebRequestEventRouter::GetInstance()->OnHeadersReceived( 247 return ExtensionWebRequestEventRouter::GetInstance()->OnHeadersReceived(
248 profile_, extension_info_map_.get(), request, callback, 248 profile_, extension_info_map_.get(), request, callback,
249 original_response_headers, override_response_headers); 249 original_response_headers, override_response_headers);
250 } 250 }
251 251
252 void ChromeNetworkDelegate::OnBeforeRedirect(net::URLRequest* request, 252 void ChromeNetworkDelegate::OnBeforeRedirect(net::URLRequest* request,
253 const GURL& new_location) { 253 const GURL& new_location) {
254 ExtensionWebRequestEventRouter::GetInstance()->OnBeforeRedirect( 254 ExtensionWebRequestEventRouter::GetInstance()->OnBeforeRedirect(
255 profile_, extension_info_map_.get(), request, new_location); 255 profile_, extension_info_map_.get(), request, new_location);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 #endif 449 #endif
450 return net::OK; 450 return net::OK;
451 } 451 }
452 452
453 void ChromeNetworkDelegate::OnRequestWaitStateChange( 453 void ChromeNetworkDelegate::OnRequestWaitStateChange(
454 const net::URLRequest& request, 454 const net::URLRequest& request,
455 RequestWaitState state) { 455 RequestWaitState state) {
456 if (load_time_stats_) 456 if (load_time_stats_)
457 load_time_stats_->OnRequestWaitStateChange(request, state); 457 load_time_stats_->OnRequestWaitStateChange(request, state);
458 } 458 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698