Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Unified Diff: components/enhanced_bookmarks/proto/search.proto

Issue 538903003: Bring up of the server side full text search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/enhanced_bookmarks/proto/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/enhanced_bookmarks/proto/search.proto
diff --git a/components/enhanced_bookmarks/proto/search.proto b/components/enhanced_bookmarks/proto/search.proto
new file mode 100644
index 0000000000000000000000000000000000000000..df508abd89e7337d577272b0d2746735f3a5d9e6
--- /dev/null
+++ b/components/enhanced_bookmarks/proto/search.proto
@@ -0,0 +1,30 @@
+// 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;
+
+// Contains the result of a full text search.
+message CorpusSearchResult {
+ // Encodes the status of the response.
+ enum Status {
+ UNKNOWN = 0;
+ OK = 1;
+ FAILED_RPC = 2;
+ NO_VALID_BACKEND = 3;
+ INVALID_INPUT = 4;
+ }
+ optional Status status = 1;
+
+ // For each results returns the clip id, the title and a snippet highlighting
+ // the context of the match on the search term.
+ message ClipResult {
+ optional string clip_id = 1;
+ optional string title = 2;
+ optional string snippet = 3;
+ }
+ repeated ClipResult results = 2;
+}
« no previous file with comments | « components/enhanced_bookmarks/proto/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698