Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: chrome/browser/tab_restore_service.h

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_BROWSER_TAB_RESTORE_SERVICE_H__ 5 #ifndef CHROME_BROWSER_TAB_RESTORE_SERVICE_H__
6 #define CHROME_BROWSER_TAB_RESTORE_SERVICE_H__ 6 #define CHROME_BROWSER_TAB_RESTORE_SERVICE_H__
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 30 matching lines...) Expand all
41 // Sent to all remaining Observers when TabRestoreService's 41 // Sent to all remaining Observers when TabRestoreService's
42 // destructor is run. 42 // destructor is run.
43 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) = 0; 43 virtual void TabRestoreServiceDestroyed(TabRestoreService* service) = 0;
44 }; 44 };
45 45
46 // Represents a previously open tab. 46 // Represents a previously open tab.
47 struct HistoricalTab { 47 struct HistoricalTab {
48 HistoricalTab(); 48 HistoricalTab();
49 49
50 // Time the tab was closed. 50 // Time the tab was closed.
51 Time close_time; 51 base::Time close_time;
52 52
53 // If true, this is a historical session and not a closed tab. 53 // If true, this is a historical session and not a closed tab.
54 bool from_last_session; 54 bool from_last_session;
55 55
56 // The navigations. 56 // The navigations.
57 // WARNING: navigations may be empty. 57 // WARNING: navigations may be empty.
58 std::vector<TabNavigation> navigations; 58 std::vector<TabNavigation> navigations;
59 59
60 // Index of the selected navigation in navigations. 60 // Index of the selected navigation in navigations.
61 int current_navigation_index; 61 int current_navigation_index;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Used in requesting the last session. 137 // Used in requesting the last session.
138 CancelableRequestConsumer cancelable_consumer_; 138 CancelableRequestConsumer cancelable_consumer_;
139 139
140 ObserverList<Observer> observer_list_; 140 ObserverList<Observer> observer_list_;
141 141
142 DISALLOW_EVIL_CONSTRUCTORS(TabRestoreService); 142 DISALLOW_EVIL_CONSTRUCTORS(TabRestoreService);
143 }; 143 };
144 144
145 #endif // CHROME_BROWSER_TAB_RESTORE_SERVICE_H__ 145 #endif // CHROME_BROWSER_TAB_RESTORE_SERVICE_H__
146 146
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698