Skip to content

Commit

Permalink
Merge pull request chromium#129 from tKabiawu/unspecifiedPolicyTypeCo…
Browse files Browse the repository at this point in the history
…nstant

Added UnspecifiedPolicyType constant
  • Loading branch information
carlosjoan91 authored Jun 23, 2023
2 parents bb638f0 + 84df29b commit 9e257cb
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions chromium/preloadlist/preloadlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,29 @@ type PreloadList struct {
Entries []Entry `json:"entries"`
}

// PolicyType represents the policy under which the domain is a part of the preload list
// PolicyType represents the policy under which the domain was added to the preload list.
type PolicyType string

// Possible PolicyType values are as defined by
// https://source.chromium.org/chromium/chromium/src/+/main:net/http/transport_security_state_static.json
const (
// test domains
// Domains with an unspecified policy type.
UnspecifiedPolicyType = ""
// Test domains.
Test PolicyType = "test"
// Google-owned sites
// Google-owned sites.
Google = "google"
// Entries without includeSubdomains or with HPKP
// Entries without includeSubdomains or with HPKP.
Custom = "custom"
// Bulk entries preloaded before Chrome 50
// Bulk entries preloaded before Chrome 50.
BulkLegacy = "bulk-legacy"
// Bulk entries with max-age >= 18 weeks (Chrome 50-63)
// Bulk entries with max-age >= 18 weeks (Chrome 50-63).
Bulk18Weeks = "bulk-18-weeks"
// Bulk entries with max-age >= 1 year (after Chrome 63)
// Bulk entries with max-age >= 1 year (after Chrome 63).
Bulk1Year = "bulk-1-year"
// Public suffixes (e.g. TLDs or other public suffix list entries) preloaded at the owner's request.
PublicSuffix = "public-suffix"
// domains under a public suffix that have been preloaded at the request of the the public suffix owner
// Domains under a public suffix that have been preloaded at the request of the the public suffix owner
// (e.g. the registry for the TLD).
PublicSuffixRequested = "public-suffix-requested"
)
Expand Down

0 comments on commit 9e257cb

Please sign in to comment.