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

Side by Side Diff: components/enhanced_bookmarks/proto/metadata.proto

Issue 891873002: Add method for removing bookmark image data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 syntax = "proto2"; 5 syntax = "proto2";
6 option optimize_for = LITE_RUNTIME; 6 option optimize_for = LITE_RUNTIME;
7 7
8 package image.collections; 8 package image.collections;
9 9
10 message ImageData { 10 message ImageData {
11 // Encrypted 64-bit image doc id, if it has been crawled, 11 // Encrypted 64-bit image doc id, if it has been crawled,
12 // e.g. "kY7_4LKgNqDrbM:" 12 // e.g. "kY7_4LKgNqDrbM:"
13 optional string doc_id = 1; 13 optional string doc_id = 1;
14 14
15 message ImageInfo { 15 message ImageInfo {
16 // The (normalized) URL this image can be found at. 16 // The (normalized) URL this image can be found at.
17 optional string url = 1; 17 optional string url = 1;
18 18
19 // The dimensions in pixels. 19 // The dimensions in pixels.
20 optional int32 width = 2; 20 optional int32 width = 2;
21 optional int32 height = 3; 21 optional int32 height = 3;
22 } 22 }
23 23
24 // Information about the original collected image. 24 // Information about the original collected image.
25 optional ImageInfo original_info = 2; 25 optional ImageInfo original_info = 2;
26 26
27 // Information about the server hosted thumbnail. 27 // Information about the server hosted thumbnail.
28 optional ImageInfo thumbnail_info = 3; 28 optional ImageInfo thumbnail_info = 3;
29
30 // The expiration timestamp of the served thumbnail, in microseconds since
31 // epoch. The thumbnail is only guaranteed until this time, afterwards the
32 // URL may be broken.
33 // If expiration_timestamp is not present, then whoever set the thumbnail_info
34 // should guarantee that the thumbnail will not expire.
35 optional int64 expiration_timestamp = 5;
36
37 // Represents an explicit user action to remove an image. This will prevent
38 // any additional backfilling once this is set.
39 optional bool user_removed_image = 6;
29 } 40 }
30 41
31 message PageData { 42 message PageData {
32 // The title of the web page. 43 // The title of the web page.
33 optional string title = 1; 44 optional string title = 1;
34 45
35 // A snippet of text from the web page, either computed by us or chosen by 46 // A snippet of text from the web page, either computed by us or chosen by
36 // the user. 47 // the user.
37 optional string snippet = 2; 48 optional string snippet = 2;
38 49
39 // The (normalized) URL of the web page. 50 // The (normalized) URL of the web page.
40 optional string url = 3; 51 optional string url = 3;
41 52
42 // The /url redirect signed URL for the web page. This could be appended to 53 // The /url redirect signed URL for the web page. This could be appended to
43 // "www.google.com" to create a URL redirect. 54 // "www.google.com" to create a URL redirect.
44 optional string signed_url = 5; 55 optional string signed_url = 5;
45 56
46 // The doc id of the page, if in the index. Uses the same encrypted docid 57 // The doc id of the page, if in the index. Uses the same encrypted docid
47 // format as ImageData. 58 // format as ImageData.
48 optional string doc_id = 4; 59 optional string doc_id = 4;
49 } 60 }
OLDNEW
« no previous file with comments | « components/enhanced_bookmarks/enhanced_bookmark_model_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698