OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_ |
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_ |
7 #pragma once | |
8 | 7 |
9 // TemplateURLServiceObserver is notified whenever the set of TemplateURLs | 8 // TemplateURLServiceObserver is notified whenever the set of TemplateURLs |
10 // are modified. | 9 // are modified. |
11 class TemplateURLServiceObserver { | 10 class TemplateURLServiceObserver { |
12 public: | 11 public: |
13 // Notification that the template url model has changed in some way. | 12 // Notification that the template url model has changed in some way. |
14 virtual void OnTemplateURLServiceChanged() = 0; | 13 virtual void OnTemplateURLServiceChanged() = 0; |
15 | 14 |
16 protected: | 15 protected: |
17 virtual ~TemplateURLServiceObserver() {} | 16 virtual ~TemplateURLServiceObserver() {} |
18 }; | 17 }; |
19 | 18 |
20 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_ | 19 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_OBSERVER_H_ |
OLD | NEW |