naiveproxy/chrome/common/available_offline_content.mojom

31 lines
984 B
Plaintext
Raw Normal View History

2018-08-15 01:19:20 +03:00
// 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);
};