Commit 99800cff authored by Che-yu Wu's avatar Che-yu Wu Committed by Commit Bot

Add quarantine constants files.

Add files to define all constants related to the quarantine feature.

Bug: crbug.com/884734
Change-Id: I254cd63f1ae48596abb15c10b996c7969d50a63e
Reviewed-on: https://chromium-review.googlesource.com/1228299Reviewed-by: default avatarChris Sharp <csharp@chromium.org>
Commit-Queue: Che-yu Wu <cheyuw@google.com>
Cr-Commit-Position: refs/heads/master@{#592200}
parent 65c18293
......@@ -51,3 +51,10 @@ source_set("uws_id") {
"uws_id.h",
]
}
source_set("quarantine_constants") {
sources = [
"quarantine_constants.cc",
"quarantine_constants.h",
]
}
// Copyright 2018 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.
#include "chrome/chrome_cleaner/constants/quarantine_constants.h"
namespace chrome_cleaner {
// The quarantine folder name under Chrome Cleanup folder.
constexpr wchar_t kQuarantineFolder[] = L"Quarantine";
// Fixed zip archive password for quarantine.
constexpr char kQuarantinePassword[] = "chrome_cleanup";
// The size limit of source file is 1GB.
constexpr int64_t kQuarantineSourceSizeLimit = 1024 * 1024 * 1024;
} // namespace chrome_cleaner
// Copyright 2018 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 CHROME_CHROME_CLEANER_CONSTANTS_QUARANTINE_CONSTANTS_H_
#define CHROME_CHROME_CLEANER_CONSTANTS_QUARANTINE_CONSTANTS_H_
#include <stdint.h>
namespace chrome_cleaner {
extern const wchar_t kQuarantineFolder[];
extern const char kQuarantinePassword[];
extern const int64_t kQuarantineSourceSizeLimit;
} // namespace chrome_cleaner
#endif // CHROME_CHROME_CLEANER_CONSTANTS_QUARANTINE_CONSTANTS_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment