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

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

Issue 1337113004: CHECK that URLRequestJobs are not orphaned while blocked by extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke comments Created 5 years, 3 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
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 <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 domain_reliability_monitor_->OnCompleted(request, started); 526 domain_reliability_monitor_->OnCompleted(request, started);
527 RecordRequestSourceBandwidth(request, started); 527 RecordRequestSourceBandwidth(request, started);
528 extensions_delegate_->ForwardProxyErrors(request); 528 extensions_delegate_->ForwardProxyErrors(request);
529 extensions_delegate_->ForwardDoneRequestStatus(request); 529 extensions_delegate_->ForwardDoneRequestStatus(request);
530 } 530 }
531 531
532 void ChromeNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) { 532 void ChromeNetworkDelegate::OnURLRequestDestroyed(net::URLRequest* request) {
533 extensions_delegate_->OnURLRequestDestroyed(request); 533 extensions_delegate_->OnURLRequestDestroyed(request);
534 } 534 }
535 535
536 void ChromeNetworkDelegate::OnURLRequestJobOrphaned(net::URLRequest* request) {
537 extensions_delegate_->OnURLRequestJobOrphaned(request);
538 }
539
536 void ChromeNetworkDelegate::OnPACScriptError(int line_number, 540 void ChromeNetworkDelegate::OnPACScriptError(int line_number,
537 const base::string16& error) { 541 const base::string16& error) {
538 extensions_delegate_->OnPACScriptError(line_number, error); 542 extensions_delegate_->OnPACScriptError(line_number, error);
539 } 543 }
540 544
541 net::NetworkDelegate::AuthRequiredResponse 545 net::NetworkDelegate::AuthRequiredResponse
542 ChromeNetworkDelegate::OnAuthRequired( 546 ChromeNetworkDelegate::OnAuthRequired(
543 net::URLRequest* request, 547 net::URLRequest* request,
544 const net::AuthChallengeInfo& auth_info, 548 const net::AuthChallengeInfo& auth_info,
545 const AuthCallback& callback, 549 const AuthCallback& callback,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 return experimental_web_platform_features_enabled_; 693 return experimental_web_platform_features_enabled_;
690 } 694 }
691 695
692 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( 696 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
693 const net::URLRequest& request, 697 const net::URLRequest& request,
694 const GURL& target_url, 698 const GURL& target_url,
695 const GURL& referrer_url) const { 699 const GURL& referrer_url) const {
696 ReportInvalidReferrerSend(target_url, referrer_url); 700 ReportInvalidReferrerSend(target_url, referrer_url);
697 return true; 701 return true;
698 } 702 }
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.h ('k') | extensions/browser/api/web_request/web_request_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698