| 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"; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 11 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 { | 78 enum FaviconType { TYPE_WEB_FAVICON = 1; } |
| 79 TYPE_WEB_FAVICON = 1; | |
| 80 } | |
| 81 optional FaviconType favicon_type = 9; | 79 optional FaviconType favicon_type = 9; |
| 82 // 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). |
| 83 optional string favicon_source = 11; | 81 optional string favicon_source = 11; |
| 84 // 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. |
| 85 repeated uint64 variation_id = 12; | 83 repeated uint64 variation_id = 12; |
| 86 } | 84 } |
| 87 | 85 |
| 88 message TabNavigation { | 86 message TabNavigation { |
| 89 // 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 |
| 90 // TabNavigation is bogus. | 88 // TabNavigation is bogus. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 optional int64 global_id = 15; | 122 optional int64 global_id = 15; |
| 125 // Search terms extracted from the URL. | 123 // Search terms extracted from the URL. |
| 126 optional string search_terms = 16; | 124 optional string search_terms = 16; |
| 127 // The favicon url associated with this page. | 125 // The favicon url associated with this page. |
| 128 optional string favicon_url = 17; | 126 optional string favicon_url = 17; |
| 129 enum BlockedState { | 127 enum BlockedState { |
| 130 STATE_ALLOWED = 1; | 128 STATE_ALLOWED = 1; |
| 131 STATE_BLOCKED = 2; | 129 STATE_BLOCKED = 2; |
| 132 } | 130 } |
| 133 // Whether access to the URL was allowed or blocked. | 131 // Whether access to the URL was allowed or blocked. |
| 134 optional BlockedState blocked_state = 18 [default=STATE_ALLOWED]; | 132 optional BlockedState blocked_state = 18 [default = STATE_ALLOWED]; |
| 135 // A list of category identifiers for the URL. | 133 // A list of category identifiers for the URL. |
| 136 repeated string content_pack_categories = 19; | 134 repeated string content_pack_categories = 19; |
| 137 // The status code from the last navigation. | 135 // The status code from the last navigation. |
| 138 optional int32 http_status_code = 20; | 136 optional int32 http_status_code = 20; |
| 139 | 137 |
| 140 // Referrer policy. Old, broken value. | 138 // Referrer policy. Old, broken value. |
| 141 optional int32 obsolete_referrer_policy = 21 [default = 1]; | 139 optional int32 obsolete_referrer_policy = 21 [default = 1]; |
| 142 // True if created from restored navigation entry that hasn't been loaded. | 140 // True if created from restored navigation entry that hasn't been loaded. |
| 143 optional bool is_restored = 22; | 141 optional bool is_restored = 22; |
| 144 // The chain of redirections for this navigation, from the original URL | 142 // The chain of redirections for this navigation, from the original URL |
| 145 // through the last URL that redirected. | 143 // through the last URL that redirected. |
| 146 repeated NavigationRedirect navigation_redirect = 23; | 144 repeated NavigationRedirect navigation_redirect = 23; |
| 147 // Normally not present. | 145 // Normally not present. |
| 148 // The last URL traversed when different from the virtual_url. | 146 // The last URL traversed when different from the virtual_url. |
| 149 optional string last_navigation_redirect_url = 24; | 147 optional string last_navigation_redirect_url = 24; |
| 150 // Correct referrer policy. Valid enums are defined in | 148 // Correct referrer policy. Valid enums are defined in |
| 151 // third_party/WebKit/public/platform/WebReferrerPolicy.h. | 149 // third_party/WebKit/public/platform/WebReferrerPolicy.h. |
| 152 optional int32 correct_referrer_policy = 25 [default = 1]; | 150 optional int32 correct_referrer_policy = 25 [default = 1]; |
| 153 } | 151 } |
| 154 | 152 |
| 155 // Navigation information for a single redirection within a single navigation. | 153 // Navigation information for a single redirection within a single navigation. |
| 156 message NavigationRedirect { | 154 message NavigationRedirect { |
| 157 // A URL that redirected while navigating to the virtual_url. | 155 // A URL that redirected while navigating to the virtual_url. |
| 158 optional string url = 1; | 156 optional string url = 1; |
| 159 } | 157 } |
| OLD | NEW |