[email protected] | eaee4df | 2014-07-04 05:00:12 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
[email protected] | 8e5c89a | 2011-06-07 18:13:33 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
[email protected] | bf5c532d | 2014-07-05 00:29:53 | [diff] [blame] | 5 | #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_ |
| 6 | #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_ |
[email protected] | 8e5c89a | 2011-06-07 18:13:33 | [diff] [blame] | 7 | |
| 8 | // TemplateURLServiceObserver is notified whenever the set of TemplateURLs |
| 9 | // are modified. |
| 10 | class TemplateURLServiceObserver { |
| 11 | public: |
| 12 | // Notification that the template url model has changed in some way. |
| 13 | virtual void OnTemplateURLServiceChanged() = 0; |
| 14 | |
treib | 9f5ce2d4 | 2017-04-13 09:08:03 | [diff] [blame] | 15 | // Notification that the template url service is shutting down. Observers that |
| 16 | // might outlive the service can use this to clear out any raw pointers to the |
| 17 | // service. |
| 18 | virtual void OnTemplateURLServiceShuttingDown() {} |
| 19 | |
[email protected] | 8e5c89a | 2011-06-07 18:13:33 | [diff] [blame] | 20 | protected: |
| 21 | virtual ~TemplateURLServiceObserver() {} |
| 22 | }; |
| 23 | |
[email protected] | bf5c532d | 2014-07-05 00:29:53 | [diff] [blame] | 24 | #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_ |