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

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

Issue 2479683006: [Sync] Add support for identifying tabbed activites (Closed)
Patch Set: Rename proto Created 4 years, 1 month 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 22 matching lines...) Expand all
33 optional string client_name = 3; 33 optional string client_name = 3;
34 // The type of device. 34 // The type of device.
35 optional SyncEnums.DeviceType device_type = 4; 35 optional SyncEnums.DeviceType device_type = 4;
36 } 36 }
37 37
38 message SessionWindow { 38 message SessionWindow {
39 // Unique (to the owner) id for this window. 39 // Unique (to the owner) id for this window.
40 optional int32 window_id = 1; 40 optional int32 window_id = 1;
41 // Index of the selected tab in tabs; -1 if no tab is selected. 41 // Index of the selected tab in tabs; -1 if no tab is selected.
42 optional int32 selected_tab_index = 2 [default = -1]; 42 optional int32 selected_tab_index = 2 [default = -1];
43 // Type of the browser. Currently we only store browsers of type 43 // Type of the window.
44 // TYPE_TABBED and TYPE_POPUP.
45 enum BrowserType { 44 enum BrowserType {
Ted C 2016/11/08 00:41:45 I'll start with naive questioning here. Can this
Nicolas Zea 2016/11/08 20:52:40 Hmm. I think there's a question of whether the Tab
46 TYPE_TABBED = 1; 45 TYPE_TABBED = 1; // A normal tabbed window.
47 TYPE_POPUP = 2; 46 TYPE_POPUP = 2; // A popup window.
47 TYPE_CUSTOM_TAB = 3; // A custom tab within an app. Not restored
48 // automatically on sync startup.
48 } 49 }
49 optional BrowserType browser_type = 3 [default = TYPE_TABBED]; 50 optional BrowserType browser_type = 3 [default = TYPE_TABBED];
50 // The tabs that compose a window (correspond to tab id's). 51 // The tabs that compose a window (correspond to tab id's).
51 repeated int32 tab = 4; 52 repeated int32 tab = 4;
52 } 53 }
53 54
54 message SessionTab { 55 message SessionTab {
55 // Unique (to the owner) id for this tab. 56 // Unique (to the owner) id for this tab.
56 optional int32 tab_id = 1; 57 optional int32 tab_id = 1;
57 // The unique id for the window this tab belongs to. 58 // The unique id for the window this tab belongs to.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 156 }
156 // Whether the Password Manager saw a password field on the page. 157 // Whether the Password Manager saw a password field on the page.
157 optional PasswordState password_state = 26; 158 optional PasswordState password_state = 26;
158 } 159 }
159 160
160 // Navigation information for a single redirection within a single navigation. 161 // Navigation information for a single redirection within a single navigation.
161 message NavigationRedirect { 162 message NavigationRedirect {
162 // A URL that redirected while navigating to the virtual_url. 163 // A URL that redirected while navigating to the virtual_url.
163 optional string url = 1; 164 optional string url = 1;
164 } 165 }
OLDNEW
« no previous file with comments | « components/sync/protocol/proto_enum_conversions.cc ('k') | components/sync_sessions/sessions_sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698