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