summaryrefslogtreecommitdiffstats
path: root/components/enhanced_bookmarks/proto
diff options
context:
space:
mode:
authornoyau <noyau@chromium.org>2014-10-08 04:11:11 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-08 11:11:35 +0000
commitdaaac3af72f231dec2df4dc566b84356d3dc10df (patch)
tree00c29c35ec84a81e461e3a1f53a8ca37fc421515 /components/enhanced_bookmarks/proto
parent7e6d411816fc12913f0a7ae6c32bc38e73f721e8 (diff)
downloadchromium_src-daaac3af72f231dec2df4dc566b84356d3dc10df.zip
chromium_src-daaac3af72f231dec2df4dc566b84356d3dc10df.tar.gz
chromium_src-daaac3af72f231dec2df4dc566b84356d3dc10df.tar.bz2
Bring up of the enhanced bookmarks cluster service.
This service retrieves the cluster of bookmarks from the bookmark server. BUG=None Committed: https://crrev.com/6bb374fc58bfeeb7966b6a548b1c7b41af9c8e47 Cr-Commit-Position: refs/heads/master@{#298582} Review URL: https://codereview.chromium.org/539173004 Cr-Commit-Position: refs/heads/master@{#298682}
Diffstat (limited to 'components/enhanced_bookmarks/proto')
-rw-r--r--components/enhanced_bookmarks/proto/BUILD.gn1
-rw-r--r--components/enhanced_bookmarks/proto/cluster.proto34
2 files changed, 35 insertions, 0 deletions
diff --git a/components/enhanced_bookmarks/proto/BUILD.gn b/components/enhanced_bookmarks/proto/BUILD.gn
index f6e932d..579884a 100644
--- a/components/enhanced_bookmarks/proto/BUILD.gn
+++ b/components/enhanced_bookmarks/proto/BUILD.gn
@@ -6,6 +6,7 @@ import("//third_party/protobuf/proto_library.gni")
proto_library("proto") {
sources = [
+ "cluster.proto",
"metadata.proto",
"search.proto",
]
diff --git a/components/enhanced_bookmarks/proto/cluster.proto b/components/enhanced_bookmarks/proto/cluster.proto
new file mode 100644
index 0000000..9901541
--- /dev/null
+++ b/components/enhanced_bookmarks/proto/cluster.proto
@@ -0,0 +1,34 @@
+// 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 ClusterRequest {
+ // Optional list of docs we want to cluster--a subset of the user's available
+ // docs.
+ repeated string docs = 1;
+
+ // When docs is empty, used to determine which clips are clustered. If set to
+ // true, cluster all the user's clips. Otherwise (default) cluster all of the
+ // user's uncategorized clips.
+ optional bool cluster_all = 3 [default = false];
+
+ extensions 2;
+}
+
+message ClusterResponse {
+ message Cluster {
+ repeated string docs = 1;
+ // May be empty or unset if no reasonable title could be found.
+ optional string title = 2;
+ }
+
+ // Each of ClusterRequest.docs will exist in exactly one cluster. Some
+ // clusters may be singletons, so
+ // ClusterResponse.clusters_size() <= ClusterRequest.docs_size().
+ repeated Cluster clusters = 1;
+}