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