naiveproxy/chrome/common/available_offline_content.mojom
2018-08-14 22:19:20 +00:00

31 lines
984 B
Plaintext

// 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.
module chrome.mojom;
import "url/mojom/url.mojom";
// A single piece of content that is available offline.
struct AvailableOfflineContent {
// Together id and name_space define a unique ID for this item.
string id;
string name_space;
// A brief title for the item.
string title;
// Descriptive text about the item.
string snippet;
// A user-friendly description of the modified date.
string date_modified;
// A brief description of the source. May be empty.
string attribution;
// A data URI for a thumbnail that is related to the content.
url.mojom.Url thumbnail_data_uri;
};
// Provides access to items available while offline.
interface AvailableOfflineContentProvider {
// Returns some available pieces of content from downloads.
List() => (array<AvailableOfflineContent> out);
};