Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / sessions / tab_restore_service.cc
blob06a494a2ce0d41940659bebcc22ef80561be7dfd
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++),
20 type(TAB),
21 from_last_session(false) {}
23 TabRestoreService::Entry::Entry(Type type)
24 : id(next_entry_id++),
25 type(type),
26 from_last_session(false) {}
28 TabRestoreService::Entry::~Entry() {}
30 // Tab ------------------------------------------------------------------------
32 TabRestoreService::Tab::Tab()
33 : Entry(TAB),
34 current_navigation_index(-1),
35 browser_id(0),
36 tabstrip_index(-1),
37 pinned(false) {
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() {