OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 // option optimize_for = LITE_RUNTIME; | 9 // option optimize_for = LITE_RUNTIME; |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 optional string virtual_url = 2; | 55 optional string virtual_url = 2; |
56 // The referring URL, which can be empty. | 56 // The referring URL, which can be empty. |
57 optional string referrer = 3; | 57 optional string referrer = 3; |
58 // The title of the page. | 58 // The title of the page. |
59 optional string title = 4; | 59 optional string title = 4; |
60 // Content state is an opaque blob created by WebKit that represents the | 60 // Content state is an opaque blob created by WebKit that represents the |
61 // state of the page. This includes form entries and scroll position for each | 61 // state of the page. This includes form entries and scroll position for each |
62 // frame. | 62 // frame. |
63 optional string state = 5; | 63 optional string state = 5; |
64 // Types of transitions between pages. | 64 // Types of transitions between pages. |
65 enum PageTransition{ | 65 enum PageTransition { |
66 LINK = 0; | 66 LINK = 0; |
67 TYPED = 1; | 67 TYPED = 1; |
68 AUTO_BOOKMARK = 2; | 68 AUTO_BOOKMARK = 2; |
69 AUTO_SUBFRAME = 3; | 69 AUTO_SUBFRAME = 3; |
70 MANUAL_SUBFRAME = 4; | 70 MANUAL_SUBFRAME = 4; |
71 GENERATED = 5; | 71 GENERATED = 5; |
72 START_PAGE = 6; | 72 START_PAGE = 6; |
73 FORM_SUBMIT = 7; | 73 FORM_SUBMIT = 7; |
74 RELOAD = 8; | 74 RELOAD = 8; |
75 KEYWORD = 9; | 75 KEYWORD = 9; |
76 KEYWORD_GENERATED = 10; | 76 KEYWORD_GENERATED = 10; |
77 CHAIN_START = 12; | 77 CHAIN_START = 12; |
78 CHAIN_END = 13; | 78 CHAIN_END = 13; |
79 } | 79 } |
80 // These qualifiers further define the transition. | 80 // These qualifiers further define the transition. |
81 enum PageTransitionQualifier { | 81 enum PageTransitionQualifier { |
82 CLIENT_REDIRECT = 1; | 82 CLIENT_REDIRECT = 1; |
83 SERVER_REDIRECT = 2; | 83 SERVER_REDIRECT = 2; |
84 } | 84 } |
85 optional PageTransition page_transition = 6 [default = TYPED]; | 85 optional PageTransition page_transition = 6 [default = TYPED]; |
86 optional PageTransitionQualifier navigation_qualifier = 7; | 86 optional PageTransitionQualifier navigation_qualifier = 7; |
87 } | 87 } |
88 | 88 |
89 extend EntitySpecifics { | 89 extend EntitySpecifics { |
90 optional SessionSpecifics session = 50119; | 90 optional SessionSpecifics session = 50119; |
91 } | 91 } |
OLD | NEW |