blob: 6bc94fecb0d0fd017b5d12e6f05e2c5d1985c863 [file] [log] [blame]
// Copyright 2017 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 <stdint.h>
#include <string>
#include <vector>
#include "third_party/skia/include/core/SkBitmap.h"
namespace payments {
struct WebAppManifestSection {
explicit WebAppManifestSection(const WebAppManifestSection& param);
// The package name of the app.
std::string id;
// Minimum version number of the app.
int64_t min_version = 0;
// The result of SHA256(signing certificate bytes) for each certificate in the
// app.
std::vector<std::vector<uint8_t>> fingerprints;
struct WebAppInstallationInfo {
std::unique_ptr<SkBitmap> icon;
std::string name;
std::string sw_js_url;
std::string sw_scope;
bool sw_use_cache = false;
// If "prefer_related_applications" is true in web app manifest, this is the
// list of all "" values where "platform" is "play".
std::vector<std::string> preferred_app_ids;
} // namespace payments