summaryrefslogtreecommitdiffstats
path: root/components/enhanced_bookmarks/proto
diff options
context:
space:
mode:
authornoyau@chromium.org <noyau@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-20 09:47:37 +0000
committernoyau@chromium.org <noyau@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-20 09:47:37 +0000
commite244e1ae3b065cbe8d9f568a3230d122ce33613e (patch)
treef00aa1fc4389c6a8636f0ecacf1d46d511eb4abb /components/enhanced_bookmarks/proto
parentcd0ebe9f170dc4997c6fb76d78a217a2de755094 (diff)
downloadchromium_src-e244e1ae3b065cbe8d9f568a3230d122ce33613e.zip
chromium_src-e244e1ae3b065cbe8d9f568a3230d122ce33613e.tar.gz
chromium_src-e244e1ae3b065cbe8d9f568a3230d122ce33613e.tar.bz2
Bring up of the metadata accessors for enhanced bookmarks.
BUG=None Review URL: https://codereview.chromium.org/336263003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278656 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/enhanced_bookmarks/proto')
-rw-r--r--components/enhanced_bookmarks/proto/metadata.proto49
1 files changed, 49 insertions, 0 deletions
diff --git a/components/enhanced_bookmarks/proto/metadata.proto b/components/enhanced_bookmarks/proto/metadata.proto
new file mode 100644
index 0000000..bf4f18c
--- /dev/null
+++ b/components/enhanced_bookmarks/proto/metadata.proto
@@ -0,0 +1,49 @@
+// Copyright 2014 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 = "proto2";
+option optimize_for = LITE_RUNTIME;
+
+package image.collections;
+
+message ImageData {
+ // Encrypted 64-bit image doc id, if it has been crawled,
+ // e.g. "kY7_4LKgNqDrbM:"
+ optional string doc_id = 1;
+
+ message ImageInfo {
+ // The (normalized) URL this image can be found at.
+ optional string url = 1;
+
+ // The dimensions in pixels.
+ optional int32 width = 2;
+ optional int32 height = 3;
+ }
+
+ // Information about the original collected image.
+ optional ImageInfo original_info = 2;
+
+ // Information about the server hosted thumbnail.
+ optional ImageInfo thumbnail_info = 3;
+}
+
+message PageData {
+ // The title of the web page.
+ optional string title = 1;
+
+ // A snippet of text from the web page, either computed by us or chosen by
+ // the user.
+ optional string snippet = 2;
+
+ // The (normalized) URL of the web page.
+ optional string url = 3;
+
+ // The /url redirect signed URL for the web page. This could be appended to
+ // "www.google.com" to create a URL redirect.
+ optional string signed_url = 5;
+
+ // The doc id of the page, if in the index. Uses the same encrypted docid
+ // format as ImageData.
+ optional string doc_id = 4;
+}