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

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

Issue 179028: Revert "Fix a ton of compiler warnings." (Closed)
Patch Set: Created 11 years, 3 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
« no previous file with comments | « chrome/browser/search_engines/template_url_parser.h ('k') | chrome/browser/shell_dialogs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 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_SESSIONS_TAB_RESTORE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ 6 #define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
(...skipping 22 matching lines...) Expand all
34 // Observer is notified when the set of entries managed by TabRestoreService 34 // Observer is notified when the set of entries managed by TabRestoreService
35 // changes in some way. 35 // changes in some way.
36 class Observer { 36 class Observer {
37 public: 37 public:
38 // Sent when the set of entries changes in some way. 38 // Sent when the set of entries changes in some way.
39 virtual void TabRestoreServiceChanged(TabRestoreService* service) = 0; 39 virtual void TabRestoreServiceChanged(TabRestoreService* service) = 0;
40 40
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
45 protected:
46 ~Observer() {}
47 }; 44 };
48 45
49 // Interface used to allow the test to provide a custom time. 46 // Interface used to allow the test to provide a custom time.
50 class TimeFactory { 47 class TimeFactory {
51 public: 48 public:
52 virtual ~TimeFactory() {} 49 virtual ~TimeFactory() {}
53 virtual base::Time TimeNow() = 0; 50 virtual base::Time TimeNow() = 0;
54 }; 51 };
55 52
56 // The type of entry. 53 // The type of entry.
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // entries_. 323 // entries_.
327 std::vector<Entry*> staging_entries_; 324 std::vector<Entry*> staging_entries_;
328 325
329 TimeFactory* time_factory_; 326 TimeFactory* time_factory_;
330 327
331 DISALLOW_COPY_AND_ASSIGN(TabRestoreService); 328 DISALLOW_COPY_AND_ASSIGN(TabRestoreService);
332 }; 329 };
333 330
334 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_ 331 #endif // CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_H_
335 332
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_parser.h ('k') | chrome/browser/shell_dialogs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698