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

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

Issue 1176253002: Fix IsPrecachingAllowed() to check Sync instead of Data Saver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaks per bengr. Created 5 years, 6 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
« no previous file with comments | « chrome/browser/android/precache/precache_launcher.cc ('k') | chrome/browser/precache/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "net/cookies/canonical_cookie.h" 47 #include "net/cookies/canonical_cookie.h"
48 #include "net/cookies/cookie_options.h" 48 #include "net/cookies/cookie_options.h"
49 #include "net/http/http_request_headers.h" 49 #include "net/http/http_request_headers.h"
50 #include "net/http/http_response_headers.h" 50 #include "net/http/http_response_headers.h"
51 #include "net/http/http_status_code.h" 51 #include "net/http/http_status_code.h"
52 #include "net/log/net_log.h" 52 #include "net/log/net_log.h"
53 #include "net/url_request/url_request.h" 53 #include "net/url_request/url_request.h"
54 54
55 #if defined(OS_ANDROID) 55 #if defined(OS_ANDROID)
56 #include "chrome/browser/io_thread.h" 56 #include "chrome/browser/io_thread.h"
57 #include "chrome/browser/precache/precache_manager_factory.h"
57 #include "components/precache/content/precache_manager.h" 58 #include "components/precache/content/precache_manager.h"
58 #include "components/precache/content/precache_manager_factory.h"
59 #endif 59 #endif
60 60
61 #if defined(OS_CHROMEOS) 61 #if defined(OS_CHROMEOS)
62 #include "base/sys_info.h" 62 #include "base/sys_info.h"
63 #include "chrome/common/chrome_switches.h" 63 #include "chrome/common/chrome_switches.h"
64 #endif 64 #endif
65 65
66 #if defined(ENABLE_CONFIGURATION_POLICY) 66 #if defined(ENABLE_CONFIGURATION_POLICY)
67 #include "components/policy/core/browser/url_blacklist_manager.h" 67 #include "components/policy/core/browser/url_blacklist_manager.h"
68 #endif 68 #endif
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 return experimental_web_platform_features_enabled_; 682 return experimental_web_platform_features_enabled_;
683 } 683 }
684 684
685 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( 685 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
686 const net::URLRequest& request, 686 const net::URLRequest& request,
687 const GURL& target_url, 687 const GURL& target_url,
688 const GURL& referrer_url) const { 688 const GURL& referrer_url) const {
689 ReportInvalidReferrerSend(target_url, referrer_url); 689 ReportInvalidReferrerSend(target_url, referrer_url);
690 return true; 690 return true;
691 } 691 }
OLDNEW
« no previous file with comments | « chrome/browser/android/precache/precache_launcher.cc ('k') | chrome/browser/precache/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698