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.
5 #include "chrome/browser/sessions/tab_restore_service.h"
7 #include "content/public/browser/session_storage_namespace.h"
9 // TimeFactory-----------------------------------------------------------------
11 TabRestoreService::TimeFactory::~TimeFactory() {}
13 // Entry ----------------------------------------------------------------------
15 // ID of the next Entry.
16 static SessionID::id_type next_entry_id
= 1;
18 TabRestoreService::Entry::Entry()
19 : id(next_entry_id
++),
21 from_last_session(false) {}
23 TabRestoreService::Entry::Entry(Type type
)
24 : id(next_entry_id
++),
26 from_last_session(false) {}
28 TabRestoreService::Entry::~Entry() {}
30 // Tab ------------------------------------------------------------------------
32 TabRestoreService::Tab::Tab()
34 current_navigation_index(-1),
40 TabRestoreService::Tab::~Tab() {
43 // Window ---------------------------------------------------------------------
45 TabRestoreService::Window::Window() : Entry(WINDOW
), selected_tab_index(-1) {
48 TabRestoreService::Window::~Window() {
51 // TabRestoreService ----------------------------------------------------------
53 TabRestoreService::~TabRestoreService() {