| OLD | NEW |
| 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"; |
| 11 | 11 |
| 12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
| 13 option retain_unknown_fields = true; | 13 option retain_unknown_fields = true; |
| 14 | 14 |
| 15 package sync_pb; | 15 package sync_pb; |
| 16 | 16 |
| 17 import "sync_enums.proto"; |
| 18 |
| 17 message SessionSpecifics { | 19 message SessionSpecifics { |
| 18 // Unique id for the client. | 20 // Unique id for the client. |
| 19 optional string session_tag = 1; | 21 optional string session_tag = 1; |
| 20 optional SessionHeader header = 2; | 22 optional SessionHeader header = 2; |
| 21 optional SessionTab tab = 3; | 23 optional SessionTab tab = 3; |
| 22 | 24 |
| 23 // The local tab id used by sync. Unique across all nodes for that client. | 25 // The local tab id used by sync. Unique across all nodes for that client. |
| 24 optional int32 tab_node_id = 4 [default = -1]; | 26 optional int32 tab_node_id = 4 [default = -1]; |
| 25 } | 27 } |
| 26 | 28 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // when we display it to the user. | 98 // when we display it to the user. |
| 97 optional string virtual_url = 2; | 99 optional string virtual_url = 2; |
| 98 // The referring URL, which can be empty. | 100 // The referring URL, which can be empty. |
| 99 optional string referrer = 3; | 101 optional string referrer = 3; |
| 100 // The title of the page. | 102 // The title of the page. |
| 101 optional string title = 4; | 103 optional string title = 4; |
| 102 // Content state is an opaque blob created by WebKit that represents the | 104 // Content state is an opaque blob created by WebKit that represents the |
| 103 // state of the page. This includes form entries and scroll position for each | 105 // state of the page. This includes form entries and scroll position for each |
| 104 // frame. | 106 // frame. |
| 105 optional string state = 5; | 107 optional string state = 5; |
| 106 // Types of transitions between pages. | 108 optional SyncEnums.PageTransition page_transition = 6 [default = TYPED]; |
| 107 enum PageTransition { | 109 optional SyncEnums.PageTransitionQualifier navigation_qualifier = 7; |
| 108 LINK = 0; | |
| 109 TYPED = 1; | |
| 110 AUTO_BOOKMARK = 2; | |
| 111 AUTO_SUBFRAME = 3; | |
| 112 MANUAL_SUBFRAME = 4; | |
| 113 GENERATED = 5; | |
| 114 START_PAGE = 6; | |
| 115 FORM_SUBMIT = 7; | |
| 116 RELOAD = 8; | |
| 117 KEYWORD = 9; | |
| 118 KEYWORD_GENERATED = 10; | |
| 119 CHAIN_START = 12; | |
| 120 CHAIN_END = 13; | |
| 121 } | |
| 122 // These qualifiers further define the transition. | |
| 123 enum PageTransitionQualifier { | |
| 124 CLIENT_REDIRECT = 1; | |
| 125 SERVER_REDIRECT = 2; | |
| 126 } | |
| 127 optional PageTransition page_transition = 6 [default = TYPED]; | |
| 128 optional PageTransitionQualifier navigation_qualifier = 7; | |
| 129 // The unique navigation id (within this client). | 110 // The unique navigation id (within this client). |
| 130 optional int32 unique_id = 8; | 111 optional int32 unique_id = 8; |
| 131 // Timestamp for when this navigation last occurred (in client time). | 112 // Timestamp for when this navigation last occurred (in client time). |
| 132 // If the user goes back/foward in history the timestamp may refresh. | 113 // If the user goes back/foward in history the timestamp may refresh. |
| 133 optional int64 timestamp = 9; | 114 optional int64 timestamp = 9; |
| 134 } | 115 } |
| 135 | 116 |
| OLD | NEW |