Chromium Code Reviews| Index: components/history/core/browser/history_service_observer.h |
| diff --git a/components/history/core/browser/history_service_observer.h b/components/history/core/browser/history_service_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b3b308bc70eb137582a42cdb575a96584169d127 |
| --- /dev/null |
| +++ b/components/history/core/browser/history_service_observer.h |
| @@ -0,0 +1,21 @@ |
| +// Copyright 2014 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 COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ |
| +#define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ |
| + |
| +class HistoryService; |
| + |
| +namespace history { |
| + |
| +// Interface for observing notifications from HistoryService. |
| +class HistoryServiceObserver { |
|
sdefresne
2014/09/23 08:45:10
This class need to have a virtual destructor.
sdefresne
2014/10/20 13:15:43
This class has already been added, please rebase.
|
| + public: |
| + // Is called to notify when a history service has finished loading. |
| + virtual void HistoryServiceLoaded(HistoryService* service) = 0; |
|
sdefresne
2014/09/23 08:45:10
Use DISALLOW_COPY_AND_ASSIGN to disallow copying a
|
| +}; |
| + |
| +} // namespace history |
| + |
| +#endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_OBSERVER_H_ |