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

Side by Side Diff: chrome/test/base/history_index_restore_observer.h

Issue 637933002: Replace FINAL and OVERRIDE with their C++11 counterparts in chrome/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chrome/test/base/find_in_page_observer.h ('k') | chrome/test/base/in_process_browser_test.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) 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 #ifndef CHROME_TEST_BASE_HISTORY_INDEX_RESTORE_OBSERVER_H_ 5 #ifndef CHROME_TEST_BASE_HISTORY_INDEX_RESTORE_OBSERVER_H_
6 #define CHROME_TEST_BASE_HISTORY_INDEX_RESTORE_OBSERVER_H_ 6 #define CHROME_TEST_BASE_HISTORY_INDEX_RESTORE_OBSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/history/in_memory_url_index.h" 11 #include "chrome/browser/history/in_memory_url_index.h"
12 12
13 // HistoryIndexRestoreObserver is used when blocking until the InMemoryURLIndex 13 // HistoryIndexRestoreObserver is used when blocking until the InMemoryURLIndex
14 // finishes restoring. As soon as the InMemoryURLIndex finishes restoring the 14 // finishes restoring. As soon as the InMemoryURLIndex finishes restoring the
15 // provided Closure is invoked. 15 // provided Closure is invoked.
16 class HistoryIndexRestoreObserver 16 class HistoryIndexRestoreObserver
17 : public history::InMemoryURLIndex::RestoreCacheObserver { 17 : public history::InMemoryURLIndex::RestoreCacheObserver {
18 public: 18 public:
19 explicit HistoryIndexRestoreObserver(const base::Closure& task); 19 explicit HistoryIndexRestoreObserver(const base::Closure& task);
20 virtual ~HistoryIndexRestoreObserver(); 20 virtual ~HistoryIndexRestoreObserver();
21 21
22 bool succeeded() const { return succeeded_; } 22 bool succeeded() const { return succeeded_; }
23 23
24 // RestoreCacheObserver implementation. 24 // RestoreCacheObserver implementation.
25 virtual void OnCacheRestoreFinished(bool success) OVERRIDE; 25 virtual void OnCacheRestoreFinished(bool success) override;
26 26
27 private: 27 private:
28 base::Closure task_; 28 base::Closure task_;
29 bool succeeded_; 29 bool succeeded_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(HistoryIndexRestoreObserver); 31 DISALLOW_COPY_AND_ASSIGN(HistoryIndexRestoreObserver);
32 }; 32 };
33 33
34 #endif // CHROME_TEST_BASE_HISTORY_INDEX_RESTORE_OBSERVER_H_ 34 #endif // CHROME_TEST_BASE_HISTORY_INDEX_RESTORE_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/test/base/find_in_page_observer.h ('k') | chrome/test/base/in_process_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698