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

Side by Side Diff: net/http/transport_security_state.h

Issue 1580583002: Add a whitelist for QUIC hosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 11 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 NET_HTTP_TRANSPORT_SECURITY_STATE_H_ 5 #ifndef NET_HTTP_TRANSPORT_SECURITY_STATE_H_
6 #define NET_HTTP_TRANSPORT_SECURITY_STATE_H_ 6 #define NET_HTTP_TRANSPORT_SECURITY_STATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // the Delegate (if any). 275 // the Delegate (if any).
276 bool DeleteDynamicDataForHost(const std::string& host); 276 bool DeleteDynamicDataForHost(const std::string& host);
277 277
278 // Returns true and updates |*sts_result| and |*pkp_result| iff there is a 278 // Returns true and updates |*sts_result| and |*pkp_result| iff there is a
279 // static (built-in) state for |host|. If multiple entries match |host|, 279 // static (built-in) state for |host|. If multiple entries match |host|,
280 // the most specific match determines the return value. 280 // the most specific match determines the return value.
281 bool GetStaticDomainState(const std::string& host, 281 bool GetStaticDomainState(const std::string& host,
282 STSState* sts_result, 282 STSState* sts_result,
283 PKPState* pkp_result) const; 283 PKPState* pkp_result) const;
284 284
285 // Returns true iff there is static (build-in) state for |host| which
agl 2016/01/11 22:53:37 s/build/built/ s/which/that/
Ryan Hamilton 2016/01/11 22:59:18 Done.
286 // references the Google pins.
287 bool IsGooglePinnedHost(const std::string& host) const;
288
285 // Returns true and updates |*expect_ct_result| iff there is a static 289 // Returns true and updates |*expect_ct_result| iff there is a static
286 // (built-in) state for |host| with expect_ct=true. 290 // (built-in) state for |host| with expect_ct=true.
287 bool GetStaticExpectCTState(const std::string& host, 291 bool GetStaticExpectCTState(const std::string& host,
288 ExpectCTState* expect_ct_result) const; 292 ExpectCTState* expect_ct_result) const;
289 293
290 // Returns true and updates |*result| iff |host| has HSTS (respectively, HPKP) 294 // Returns true and updates |*result| iff |host| has HSTS (respectively, HPKP)
291 // state. If multiple HSTS (respectively, HPKP) entries match |host|, the 295 // state. If multiple HSTS (respectively, HPKP) entries match |host|, the
292 // most specific match determines the HSTS (respectively, HPKP) return value. 296 // most specific match determines the HSTS (respectively, HPKP) return value.
293 // 297 //
294 // Note that these methods are not const because they opportunistically remove 298 // Note that these methods are not const because they opportunistically remove
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 // rate-limiting. 433 // rate-limiting.
430 ExpiringCache<std::string, bool, base::TimeTicks, std::less<base::TimeTicks>> 434 ExpiringCache<std::string, bool, base::TimeTicks, std::less<base::TimeTicks>>
431 sent_reports_cache_; 435 sent_reports_cache_;
432 436
433 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState); 437 DISALLOW_COPY_AND_ASSIGN(TransportSecurityState);
434 }; 438 };
435 439
436 } // namespace net 440 } // namespace net
437 441
438 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_H_ 442 #endif // NET_HTTP_TRANSPORT_SECURITY_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698