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

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

Issue 1692503002: Functionality to allow blacklist and whitelist of custom schemes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments and merged Created 4 years, 8 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 <stddef.h> 7 #include <stddef.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 if (!data_use_aggregator_) 743 if (!data_use_aggregator_)
744 return; 744 return;
745 745
746 if (is_data_usage_off_the_record_) { 746 if (is_data_usage_off_the_record_) {
747 data_use_aggregator_->ReportOffTheRecordDataUse(tx_bytes, rx_bytes); 747 data_use_aggregator_->ReportOffTheRecordDataUse(tx_bytes, rx_bytes);
748 return; 748 return;
749 } 749 }
750 750
751 data_use_aggregator_->ReportDataUse(request, tx_bytes, rx_bytes); 751 data_use_aggregator_->ReportDataUse(request, tx_bytes, rx_bytes);
752 } 752 }
753
754 #if defined(ENABLE_CONFIGURATION_POLICY)
755 net::NetworkDelegate::URLBlacklistState
756 ChromeNetworkDelegate::GetURLBlacklistState(const GURL& url) const {
757 return url_blacklist_manager_->GetURLBlacklistState(url);
758 }
759 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698