Commit b7582667 authored by Hesen Zhang's avatar Hesen Zhang Committed by Commit Bot

[Video Tutorials] Add storage proto.

Bug: 1115755
Change-Id: Ic53116492448896364118e7840d4192ecab9cacb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2353691
Commit-Queue: Hesen Zhang <hesen@chromium.org>
Reviewed-by: default avatarShakti Sahu <shaktisahu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#798063}
parent 72775371
...@@ -44,6 +44,8 @@ source_set("factory") { ...@@ -44,6 +44,8 @@ source_set("factory") {
deps = [ deps = [
":public", ":public",
"internal:internal", "internal:internal",
"//chrome/browser/video_tutorials/proto",
"//components/leveldb_proto",
] ]
} }
......
# Copyright 2020 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.
import("//third_party/protobuf/proto_library.gni")
proto_library("proto") {
sources = [ "video_tutorials.proto" ]
}
// Copyright 2020 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.
syntax = "proto3";
option optimize_for = LITE_RUNTIME;
package video_tutorials.proto;
// Represents the feature where the video tutorial targeted to.
enum FeatureType {
INVALID = 0;
DEBUG = 1;
DOWNLOAD = 2;
SEARCH = 3;
}
// All groups of video tutorials with different languages.
message VideoTutorialGroups {
// A list of video tutorial groups.
repeated VideoTutorialGroup groups = 1;
}
// A group of video tutorials with same language.
message VideoTutorialGroup {
// Language of the video, in ISO-639-1 two character format. Eg: en, pl, hi.
string locale = 1;
// A list of video tutorials metadata.
repeated VideoTutorial metadatas = 2;
}
// Metadata of a video tutorial.
message VideoTutorial {
// Type of feature where this video tutorial targeted.
FeatureType feature = 1;
// The user visible description of this video tutorial.
string title = 2;
// The complete URL for the video.
string video_url = 3;
// Youtube Video URL for sharing.
string share_url = 4;
// The complete URL of the thumbnail image.
string poster_url = 5;
// The URL of this video's caption.
string caption_url = 6;
// Duration of the video in seconds.
int64 video_length = 7;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment