blob: 23ba24ab0a6c6c040b1685e16f59b6ce73a60a69 [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_EXTENSIONS_INSTALL_PROMPT_PERMISSIONS_H_
#define CHROME_BROWSER_EXTENSIONS_INSTALL_PROMPT_PERMISSIONS_H_
#include <string>
#include <vector>
#include "extensions/common/manifest.h"
#include "extensions/common/permissions/permission_message.h"
namespace extensions {
class PermissionSet;
struct InstallPromptPermissions {
InstallPromptPermissions();
~InstallPromptPermissions();
void LoadFromPermissionSet(const extensions::PermissionSet* permissions_set,
extensions::Manifest::Type type);
void AddPermissionMessages(
const extensions::PermissionMessages& permissions_messages);
std::vector<std::u16string> permissions;
std::vector<std::u16string> details;
std::vector<bool> is_showing_details;
};
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_INSTALL_PROMPT_PERMISSIONS_H_