| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/sessions/tab_restore_service.h" | 5 #include "chrome/browser/sessions/tab_restore_service.h" |
| 6 | 6 |
| 7 #include "content/public/browser/session_storage_namespace.h" | |
| 8 | |
| 9 // TimeFactory----------------------------------------------------------------- | 7 // TimeFactory----------------------------------------------------------------- |
| 10 | 8 |
| 11 TabRestoreService::TimeFactory::~TimeFactory() {} | 9 TabRestoreService::TimeFactory::~TimeFactory() {} |
| 12 | 10 |
| 13 // Entry ---------------------------------------------------------------------- | 11 // Entry ---------------------------------------------------------------------- |
| 14 | 12 |
| 15 // ID of the next Entry. | 13 // ID of the next Entry. |
| 16 static SessionID::id_type next_entry_id = 1; | 14 static SessionID::id_type next_entry_id = 1; |
| 17 | 15 |
| 18 TabRestoreService::Entry::Entry() | 16 TabRestoreService::Entry::Entry() |
| (...skipping 26 matching lines...) Expand all Loading... |
| 45 TabRestoreService::Window::Window() : Entry(WINDOW), selected_tab_index(-1) { | 43 TabRestoreService::Window::Window() : Entry(WINDOW), selected_tab_index(-1) { |
| 46 } | 44 } |
| 47 | 45 |
| 48 TabRestoreService::Window::~Window() { | 46 TabRestoreService::Window::~Window() { |
| 49 } | 47 } |
| 50 | 48 |
| 51 // TabRestoreService ---------------------------------------------------------- | 49 // TabRestoreService ---------------------------------------------------------- |
| 52 | 50 |
| 53 TabRestoreService::~TabRestoreService() { | 51 TabRestoreService::~TabRestoreService() { |
| 54 } | 52 } |
| OLD | NEW |