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
3// found in the LICENSE file.
4
5#include "chrome/browser/sessions/tab_restore_service.h"
6
7#include "content/public/browser/session_storage_namespace.h"
8
9// TimeFactory-----------------------------------------------------------------
10
11TabRestoreService::TimeFactory::~TimeFactory() {}
12
13// Entry ----------------------------------------------------------------------
14
15// ID of the next Entry.
16static SessionID::id_type next_entry_id = 1;
17
18TabRestoreService::Entry::Entry()
19    : id(next_entry_id++),
20      type(TAB),
21      from_last_session(false) {}
22
23TabRestoreService::Entry::Entry(Type type)
24    : id(next_entry_id++),
25      type(type),
26      from_last_session(false) {}
27
28TabRestoreService::Entry::~Entry() {}
29
30// Tab ------------------------------------------------------------------------
31
32TabRestoreService::Tab::Tab()
33    : Entry(TAB),
34      current_navigation_index(-1),
35      browser_id(0),
36      tabstrip_index(-1),
37      pinned(false) {
38}
39
40TabRestoreService::Tab::~Tab() {
41}
42
43// Window ---------------------------------------------------------------------
44
45TabRestoreService::Window::Window() : Entry(WINDOW), selected_tab_index(-1) {
46}
47
48TabRestoreService::Window::~Window() {
49}
50
51// TabRestoreService ----------------------------------------------------------
52
53TabRestoreService::~TabRestoreService() {
54}
55