Index: net/reporting/reporting_network_change_observer.h |
diff --git a/net/reporting/reporting_network_change_observer.h b/net/reporting/reporting_network_change_observer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0e70e437900aaa72387852f0689a4504f9d2a11e |
--- /dev/null |
+++ b/net/reporting/reporting_network_change_observer.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2017 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 NET_REPORTING_REPORTING_NETWORK_CHANGE_OBSERVER_H_ |
+#define NET_REPORTING_REPORTING_NETWORK_CHANGE_OBSERVER_H_ |
+ |
+#include <memory> |
+ |
+#include "net/base/net_export.h" |
+ |
+namespace net { |
+ |
+class ReportingContext; |
+ |
+// Clears queued reports and/or configured endpoints on network changes if the |
+// ReportingPolicy says to. |
shivanisha
2017/04/20 17:39:37
nit: if enabled in ReportingPolicy.
Julia Tuttle
2017/04/20 17:53:05
Done.
|
+class NET_EXPORT ReportingNetworkChangeObserver { |
+ public: |
+ // Creates a ReportingNetworkChangeObserver. |context| must outlive it. |
+ static std::unique_ptr<ReportingNetworkChangeObserver> Create( |
+ ReportingContext* context); |
+ |
+ virtual ~ReportingNetworkChangeObserver(); |
+}; |
+ |
+} // namespace net |
+ |
+#endif // NET_REPORTING_REPORTING_NETWORK_CHANGE_OBSERVER_H_ |