1// Copyright 2020 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5syntax = "proto2";
6
7package org.chromium.chrome.browser.tab.proto;
8
9option java_package = "org.chromium.chrome.browser.tab.proto";
10
11message CriticalPersistedTabDataProto {
12  // Parent Tab identifier.
13  optional int32 parent_id = 1;
14
15  // Root Tab identifier.
16  optional int32 root_id = 2;
17
18  // Timestamp when Tab was created.
19  optional int64 timestamp_millis = 3;
20
21  // WebContentsState.
22  optional bytes web_contents_state_bytes = 4;
23
24  // Content State version.
25  optional int32 content_state_version = 5;
26
27  // Identifier for app which opened the Tab.
28  optional string opener_app_id = 6;
29
30  // Theme color.
31  optional int32 theme_color = 7;
32
33  // Launch type at creation.
34  // See TabLaunchType.java for full descriptions
35  enum LaunchTypeAtCreation {
36    FROM_LINK = 0;
37    FROM_EXTERNAL_APP = 1;
38    FROM_CHROME_UI = 2;
39    FROM_RESTORE = 3;
40    FROM_LONGPRESS_FOREGROUND = 4;
41    FROM_LONGPRESS_BACKGROUND = 5;
42    FROM_REPARENTING = 6;
43    FROM_LAUNCHER_SHORTCUT = 7;
44    FROM_SPECULATIVE_BACKGROUND_CREATION = 8;
45    FROM_BROWSER_ACTIONS = 9;
46    FROM_LAUNCH_NEW_INCOGNITO_TAB = 10;
47    FROM_STARTUP = 11;
48    FROM_START_SURFACE = 12;
49    SIZE = 13;
50    UNKNOWN = 14;
51  }
52  optional LaunchTypeAtCreation launch_type_at_creation = 8;
53}
54