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

Unified Diff: chrome/test/base/history_index_restore_observer.h

Issue 1639463002: Moves HistoryIndexRestoreObserver to components/omnibox/browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/history_index_restore_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/history_index_restore_observer.h
diff --git a/chrome/test/base/history_index_restore_observer.h b/chrome/test/base/history_index_restore_observer.h
deleted file mode 100644
index a30574eca0fae97e3598b443db1b424fa8567284..0000000000000000000000000000000000000000
--- a/chrome/test/base/history_index_restore_observer.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_TEST_BASE_HISTORY_INDEX_RESTORE_OBSERVER_H_
-#define CHROME_TEST_BASE_HISTORY_INDEX_RESTORE_OBSERVER_H_
-
-#include "base/callback.h"
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "components/omnibox/browser/in_memory_url_index.h"
-
-// HistoryIndexRestoreObserver is used when blocking until the InMemoryURLIndex
-// finishes restoring. As soon as the InMemoryURLIndex finishes restoring the
-// provided Closure is invoked.
-class HistoryIndexRestoreObserver
- : public InMemoryURLIndex::RestoreCacheObserver {
- public:
- explicit HistoryIndexRestoreObserver(const base::Closure& task);
- ~HistoryIndexRestoreObserver() override;
-
- bool succeeded() const { return succeeded_; }
-
- // RestoreCacheObserver implementation.
- void OnCacheRestoreFinished(bool success) override;
-
- private:
- base::Closure task_;
- bool succeeded_;
-
- DISALLOW_COPY_AND_ASSIGN(HistoryIndexRestoreObserver);
-};
-
-#endif // CHROME_TEST_BASE_HISTORY_INDEX_RESTORE_OBSERVER_H_
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/history_index_restore_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698