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

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

Issue 2499023004: [Sync] Introduce SyncedSessionWindow type. (Closed)
Patch Set: Address comments 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.
74 // The favicon for the current url the tab is displaying. Either empty 73 // The favicon for the current url the tab is displaying. Either empty
75 // or a valid PNG encoded favicon. 74 // or a valid PNG encoded favicon.
76 optional bytes favicon = 8; 75 optional bytes favicon = 8 [deprecated = true];
77 // The type of favicon. For now only normal web favicons are supported. 76 // The type of favicon. For now only normal web favicons are supported.
78 enum FaviconType { TYPE_WEB_FAVICON = 1; } 77 enum FaviconType { TYPE_WEB_FAVICON = 1; }
79 optional FaviconType favicon_type = 9; 78 optional FaviconType favicon_type = 9 [deprecated = true];
80 // The url of the actual favicon (as opposed to the page using the favicon). 79 // The url of the actual favicon (as opposed to the page using the favicon).
81 optional string favicon_source = 11; 80 optional string favicon_source = 11 [deprecated = true];
82 // Ids of the currently assigned variations which should be sent to sync. 81 // Ids of the currently assigned variations which should be sent to sync.
83 repeated uint64 variation_id = 12; 82 repeated uint64 variation_id = 12 [deprecated = true];
84 } 83 }
85 84
86 message TabNavigation { 85 message TabNavigation {
87 // The index in the NavigationController. If this is -1, it means this 86 // The index in the NavigationController. If this is -1, it means this
88 // TabNavigation is bogus. 87 // TabNavigation is bogus.
89 // optional int32 index = 1 [default = -1]; // obsolete. 88 // optional int32 index = 1 [default = -1]; // obsolete.
90 // The virtual URL, when nonempty, will override the actual URL of the page 89 // The virtual URL, when nonempty, will override the actual URL of the page
91 // when we display it to the user. 90 // when we display it to the user.
92 optional string virtual_url = 2; 91 optional string virtual_url = 2;
93 // The referring URL, which can be empty. 92 // The referring URL, which can be empty.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 155 }
157 // Whether the Password Manager saw a password field on the page. 156 // Whether the Password Manager saw a password field on the page.
158 optional PasswordState password_state = 26; 157 optional PasswordState password_state = 26;
159 } 158 }
160 159
161 // Navigation information for a single redirection within a single navigation. 160 // Navigation information for a single redirection within a single navigation.
162 message NavigationRedirect { 161 message NavigationRedirect {
163 // A URL that redirected while navigating to the virtual_url. 162 // A URL that redirected while navigating to the virtual_url.
164 optional string url = 1; 163 optional string url = 1;
165 } 164 }
OLDNEW
« no previous file with comments | « components/sessions/core/session_types_unittest.cc ('k') | components/sync_sessions/revisit/sessions_page_revisit_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698