1 // Copyright 2014 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_
6 #define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_
8 #include "base/observer_list_types.h"
10 // TemplateURLServiceObserver is notified whenever the set of TemplateURLs
12 class TemplateURLServiceObserver : public base::CheckedObserver {
14 // Notification that the template url model has changed in some way.
15 virtual void OnTemplateURLServiceChanged() = 0;
17 // Notification that the template url service is shutting down. Observers that
18 // might outlive the service can use this to clear out any raw pointers to the
20 virtual void OnTemplateURLServiceShuttingDown() {}
23 ~TemplateURLServiceObserver() override {}
26 #endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_