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

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

Issue 2633663003: Implements strict secure cookies as the default behavior in //net (Closed)
Patch Set: Rebase on ToT Created 3 years, 10 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 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 const net::CookieList& cookie_list) override; 171 const net::CookieList& cookie_list) override;
172 bool OnCanSetCookie(const net::URLRequest& request, 172 bool OnCanSetCookie(const net::URLRequest& request,
173 const std::string& cookie_line, 173 const std::string& cookie_line,
174 net::CookieOptions* options) override; 174 net::CookieOptions* options) override;
175 bool OnCanAccessFile(const net::URLRequest& request, 175 bool OnCanAccessFile(const net::URLRequest& request,
176 const base::FilePath& path) const override; 176 const base::FilePath& path) const override;
177 bool OnCanEnablePrivacyMode( 177 bool OnCanEnablePrivacyMode(
178 const GURL& url, 178 const GURL& url,
179 const GURL& first_party_for_cookies) const override; 179 const GURL& first_party_for_cookies) const override;
180 bool OnAreExperimentalCookieFeaturesEnabled() const override; 180 bool OnAreExperimentalCookieFeaturesEnabled() const override;
181 bool OnAreStrictSecureCookiesEnabled() const override;
182 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( 181 bool OnCancelURLRequestWithPolicyViolatingReferrerHeader(
183 const net::URLRequest& request, 182 const net::URLRequest& request,
184 const GURL& target_url, 183 const GURL& target_url,
185 const GURL& referrer_url) const override; 184 const GURL& referrer_url) const override;
186 185
187 // Convenience function for reporting network usage to the 186 // Convenience function for reporting network usage to the
188 // |data_use_aggregator_|. 187 // |data_use_aggregator_|.
189 void ReportDataUsageStats(net::URLRequest* request, 188 void ReportDataUsageStats(net::URLRequest* request,
190 int64_t tx_bytes, 189 int64_t tx_bytes,
191 int64_t rx_bytes); 190 int64_t rx_bytes);
(...skipping 20 matching lines...) Expand all
212 211
213 // Aggregates and reports network usage. 212 // Aggregates and reports network usage.
214 data_usage::DataUseAggregator* data_use_aggregator_; 213 data_usage::DataUseAggregator* data_use_aggregator_;
215 // Controls whether network usage is reported as being off the record. 214 // Controls whether network usage is reported as being off the record.
216 bool is_data_usage_off_the_record_; 215 bool is_data_usage_off_the_record_;
217 216
218 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); 217 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
219 }; 218 };
220 219
221 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 220 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/cookies/cookies_unittest.cc ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698