blob: 7a64e49d1b074376c029f7ee90c0b0bc2e8bad71 [file] [log] [blame]
// Copyright 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.
#include <string>
#include "base/strings/string_piece.h"
namespace catalog {
// An interface which can be implemented by a catalog embedder to override
// manifest fetching behavior.
class ManifestProvider {
virtual ~ManifestProvider() {}
// Retrieves the raw contents of the manifest for application named |name|.
// Returns true if |name| is known and |*manifest_contents| is populated.
// returns false otherwise.
virtual bool GetApplicationManifest(const base::StringPiece& name,
std::string* manifest_contents) = 0;
} // namespace catalog