Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SEARCH_ONE_GOOGLE_BAR_ONE_GOOGLE_BAR_SERVICE_OBSERVER_H_ | |
| 6 #define CHROME_BROWSER_SEARCH_ONE_GOOGLE_BAR_ONE_GOOGLE_BAR_SERVICE_OBSERVER_H_ | |
| 7 | |
| 8 #include "base/optional.h" | |
| 9 | |
| 10 struct OneGoogleBarData; | |
| 11 | |
| 12 // Observer for OneGoogleBarService. Gets notified when the OneGoogleBarData | |
| 13 // changes. | |
| 14 class OneGoogleBarServiceObserver { | |
| 15 public: | |
| 16 virtual void OnOneGoogleBarDataChanged( | |
| 17 const base::Optional<OneGoogleBarData>& data) = 0; | |
|
sfiera
2017/04/13 15:18:31
Since the service provides an accessor, I would be
Marc Treib
2017/04/13 15:44:02
Hm. I do like the idea of "one way to get the valu
sfiera
2017/04/13 15:58:33
Passing nothing would be a lot less convenient, si
Marc Treib
2017/04/13 16:45:15
Eeh, in my experience most observers need to keep
| |
| 18 }; | |
| 19 | |
| 20 #endif // CHROME_BROWSER_SEARCH_ONE_GOOGLE_BAR_ONE_GOOGLE_BAR_SERVICE_OBSERVER_ H_ | |
| OLD | NEW |