| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 NET_REPORTING_REPORTING_OBSERVER_H_ | 5 #ifndef NET_REPORTING_REPORTING_OBSERVER_H_ |
| 6 #define NET_REPORTING_REPORTING_OBSERVER_H_ | 6 #define NET_REPORTING_REPORTING_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 class NET_EXPORT ReportingObserver { | 13 class NET_EXPORT ReportingObserver { |
| 14 public: | 14 public: |
| 15 // Called whenever any change is made to the ReportingCache. |
| 15 virtual void OnCacheUpdated(); | 16 virtual void OnCacheUpdated(); |
| 16 | 17 |
| 17 protected: | 18 protected: |
| 18 ReportingObserver(); | 19 ReportingObserver(); |
| 19 | 20 |
| 20 ~ReportingObserver(); | 21 ~ReportingObserver(); |
| 21 | 22 |
| 22 DISALLOW_COPY_AND_ASSIGN(ReportingObserver); | 23 DISALLOW_COPY_AND_ASSIGN(ReportingObserver); |
| 23 }; | 24 }; |
| 24 | 25 |
| 25 } // namespace net | 26 } // namespace net |
| 26 | 27 |
| 27 #endif // NET_REPORTING_REPORTING_OBSERVER_H_ | 28 #endif // NET_REPORTING_REPORTING_OBSERVER_H_ |
| OLD | NEW |