mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 08:16:09 +03:00
31 lines
984 B
Plaintext
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);
|
||
|
};
|