| Index: net/tools/domain_security_preload_generator/domain_security_entry.h
 | 
| diff --git a/net/tools/domain_security_preload_generator/domain_security_entry.h b/net/tools/domain_security_preload_generator/domain_security_entry.h
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..ec2febea80fe5593705cfbbd886a759f4bd4d560
 | 
| --- /dev/null
 | 
| +++ b/net/tools/domain_security_preload_generator/domain_security_entry.h
 | 
| @@ -0,0 +1,76 @@
 | 
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved.
 | 
| +// Use of this source code is governed by a BSD-style license that can be
 | 
| +// found in the LICENSE file.
 | 
| +
 | 
| +#ifndef NET_TOOLS_DOMAIN_SECURITY_PRELOAD_GENERATOR_DOMAIN_SECURITY_ENTRY_H_
 | 
| +#define NET_TOOLS_DOMAIN_SECURITY_PRELOAD_GENERATOR_DOMAIN_SECURITY_ENTRY_H_
 | 
| +
 | 
| +#include <memory>
 | 
| +#include <string>
 | 
| +#include <vector>
 | 
| +
 | 
| +#include "base/macros.h"
 | 
| +#include "base/strings/string_piece.h"
 | 
| +
 | 
| +namespace net {
 | 
| +
 | 
| +class DomainSecurityEntry {
 | 
| + public:
 | 
| +  DomainSecurityEntry(const std::string& hostname,
 | 
| +                      bool include_subdomains,
 | 
| +                      bool force_https,
 | 
| +                      bool hpkp_include_subdomains,
 | 
| +                      const std::string& pinset,
 | 
| +                      bool expect_ct,
 | 
| +                      const std::string& expect_ct_report_uri,
 | 
| +                      bool expect_staple,
 | 
| +                      bool expect_staple_include_subdomains,
 | 
| +                      const std::string& expect_staple_report_uri);
 | 
| +  ~DomainSecurityEntry();
 | 
| +
 | 
| +  const std::string& hostname() const { return hostname_; }
 | 
| +
 | 
| +  bool include_subdomains() const { return include_subdomains_; }
 | 
| +  bool force_https() const { return force_https_; }
 | 
| +
 | 
| +  bool hpkp_include_subdomains() const { return hpkp_include_subdomains_; }
 | 
| +  const std::string& pinset() const { return pinset_; }
 | 
| +
 | 
| +  bool expect_ct() const { return expect_ct_; }
 | 
| +  const std::string& expect_ct_report_uri() const {
 | 
| +    return expect_ct_report_uri_;
 | 
| +  }
 | 
| +
 | 
| +  bool expect_staple() const { return expect_staple_; }
 | 
| +  bool expect_staple_include_subdomains() const {
 | 
| +    return expect_staple_include_subdomains_;
 | 
| +  }
 | 
| +  const std::string& expect_staple_report_uri() const {
 | 
| +    return expect_staple_report_uri_;
 | 
| +  }
 | 
| +
 | 
| + private:
 | 
| +  std::string hostname_;
 | 
| +
 | 
| +  bool include_subdomains_;
 | 
| +  bool force_https_;
 | 
| +
 | 
| +  bool hpkp_include_subdomains_;
 | 
| +  std::string pinset_;
 | 
| +
 | 
| +  bool expect_ct_;
 | 
| +  std::string expect_ct_report_uri_;
 | 
| +
 | 
| +  bool expect_staple_;
 | 
| +  bool expect_staple_include_subdomains_;
 | 
| +  std::string expect_staple_report_uri_;
 | 
| +
 | 
| +  DISALLOW_COPY_AND_ASSIGN(DomainSecurityEntry);
 | 
| +};
 | 
| +
 | 
| +using DomainSecurityEntries = std::vector<std::unique_ptr<DomainSecurityEntry>>;
 | 
| +using DomainIDList = std::vector<std::string>;
 | 
| +
 | 
| +}  // namespace net
 | 
| +
 | 
| +#endif  // NET_TOOLS_DOMAIN_SECURITY_PRELOAD_GENERATOR_DOMAIN_SECURITY_ENTRY_H_
 | 
| 
 |