summaryrefslogtreecommitdiffstats
path: root/components/search_engines/template_url_service_observer.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/search_engines/template_url_service_observer.h')
-rw-r--r--components/search_engines/template_url_service_observer.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/components/search_engines/template_url_service_observer.h b/components/search_engines/template_url_service_observer.h
new file mode 100644
index 0000000..acd016f
--- /dev/null
+++ b/components/search_engines/template_url_service_observer.h
@@ -0,0 +1,19 @@
+// 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_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_
+#define COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_
+
+// TemplateURLServiceObserver is notified whenever the set of TemplateURLs
+// are modified.
+class TemplateURLServiceObserver {
+ public:
+ // Notification that the template url model has changed in some way.
+ virtual void OnTemplateURLServiceChanged() = 0;
+
+ protected:
+ virtual ~TemplateURLServiceObserver() {}
+};
+
+#endif // COMPONENTS_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_