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

Side by Side Diff: components/sync/protocol/session_specifics.proto

Issue 2499023004: [Sync] Introduce SyncedSessionWindow type. (Closed)
Patch Set: Fix compile Created 3 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Sync protocol datatype extension for sessions. 5 // Sync protocol datatype extension for sessions.
6 6
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change
8 // any fields in this file. 8 // any fields in this file.
9 9
10 syntax = "proto2"; 10 syntax = "proto2";
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Identifies the index of the current navigation in navigations. For 63 // Identifies the index of the current navigation in navigations. For
64 // example, if this is 2 it means the current navigation is navigations[2]. 64 // example, if this is 2 it means the current navigation is navigations[2].
65 optional int32 current_navigation_index = 4 [default = -1]; 65 optional int32 current_navigation_index = 4 [default = -1];
66 // True if the tab is pinned. 66 // True if the tab is pinned.
67 optional bool pinned = 5 [default = false]; 67 optional bool pinned = 5 [default = false];
68 // If non-empty, this tab is an app tab and this is the id of the extension. 68 // If non-empty, this tab is an app tab and this is the id of the extension.
69 optional string extension_app_id = 6; 69 optional string extension_app_id = 6;
70 // Tabs are navigated, and the navigation data is here. 70 // Tabs are navigated, and the navigation data is here.
71 repeated TabNavigation navigation = 7; 71 repeated TabNavigation navigation = 7;
72 72
73 // Fields 8 through 11 are deprecated. 73 // Fields 8 through 12 are deprecated.
74 // The favicon for the current url the tab is displaying. Either empty 74 // The favicon for the current url the tab is displaying. Either empty
75 // or a valid PNG encoded favicon. 75 // or a valid PNG encoded favicon.
76 optional bytes favicon = 8; 76 optional bytes favicon = 8;
77 // The type of favicon. For now only normal web favicons are supported. 77 // The type of favicon. For now only normal web favicons are supported.
78 enum FaviconType { TYPE_WEB_FAVICON = 1; } 78 enum FaviconType { TYPE_WEB_FAVICON = 1; }
79 optional FaviconType favicon_type = 9; 79 optional FaviconType favicon_type = 9;
80 // The url of the actual favicon (as opposed to the page using the favicon). 80 // The url of the actual favicon (as opposed to the page using the favicon).
81 optional string favicon_source = 11; 81 optional string favicon_source = 11;
82 // Ids of the currently assigned variations which should be sent to sync. 82 // Ids of the currently assigned variations which should be sent to sync.
83 repeated uint64 variation_id = 12; 83 repeated uint64 variation_id = 12;
skym 2017/03/28 04:48:55 Mark with [deprecated = true] ? (and while you're
Nicolas Zea 2017/03/29 19:01:33 Done.
84 } 84 }
85 85
86 message TabNavigation { 86 message TabNavigation {
87 // The index in the NavigationController. If this is -1, it means this 87 // The index in the NavigationController. If this is -1, it means this
88 // TabNavigation is bogus. 88 // TabNavigation is bogus.
89 // optional int32 index = 1 [default = -1]; // obsolete. 89 // optional int32 index = 1 [default = -1]; // obsolete.
90 // The virtual URL, when nonempty, will override the actual URL of the page 90 // The virtual URL, when nonempty, will override the actual URL of the page
91 // when we display it to the user. 91 // when we display it to the user.
92 optional string virtual_url = 2; 92 optional string virtual_url = 2;
93 // The referring URL, which can be empty. 93 // The referring URL, which can be empty.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 156 }
157 // Whether the Password Manager saw a password field on the page. 157 // Whether the Password Manager saw a password field on the page.
158 optional PasswordState password_state = 26; 158 optional PasswordState password_state = 26;
159 } 159 }
160 160
161 // Navigation information for a single redirection within a single navigation. 161 // Navigation information for a single redirection within a single navigation.
162 message NavigationRedirect { 162 message NavigationRedirect {
163 // A URL that redirected while navigating to the virtual_url. 163 // A URL that redirected while navigating to the virtual_url.
164 optional string url = 1; 164 optional string url = 1;
165 } 165 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698