// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SAFE_BROWSING_CONTENT_COMMON_FILE_TYPE_POLICIES_H_ #define COMPONENTS_SAFE_BROWSING_CONTENT_COMMON_FILE_TYPE_POLICIES_H_ #include <map> #include <memory> #include "base/files/file_path.h" #include "base/gtest_prod_util.h" #include "base/synchronization/lock.h" #include "components/safe_browsing/content/common/proto/download_file_types.pb.h" class GURL; class PrefService; namespace safe_browsing { struct FileTypePoliciesSingletonTrait; class FileTypePoliciesTestOverlay; // This holds a list of file types (aka file extensions) that we know about, // with policies related to how Safe Browsing and the download UI should treat // them. // // The data to populate it is read from a ResourceBundle and then also // fetched periodically from Google to get the most up-to-date policies. // // This is thread safe. We assume it is updated at most every few hours. class FileTypePolicies { … }; } // namespace safe_browsing #endif // COMPONENTS_SAFE_BROWSING_CONTENT_COMMON_FILE_TYPE_POLICIES_H_