Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(780)

Side by Side Diff: net/reporting/reporting_network_change_observer.h

Issue 2813103005: Reporting: Observe network changes and clear reports/clients (Closed)
Patch Set: Make requested changes. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/reporting/reporting_context.cc ('k') | net/reporting/reporting_network_change_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 NET_REPORTING_REPORTING_NETWORK_CHANGE_OBSERVER_H_
6 #define NET_REPORTING_REPORTING_NETWORK_CHANGE_OBSERVER_H_
7
8 #include <memory>
9
10 #include "net/base/net_export.h"
11
12 namespace net {
13
14 class ReportingContext;
15
16 // Clears queued reports and/or configured endpoints on network changes if
17 // enabled in ReportingPolicy.
18 class NET_EXPORT ReportingNetworkChangeObserver {
19 public:
20 // Creates a ReportingNetworkChangeObserver. |context| must outlive it.
21 static std::unique_ptr<ReportingNetworkChangeObserver> Create(
22 ReportingContext* context);
23
24 virtual ~ReportingNetworkChangeObserver();
25 };
26
27 } // namespace net
28
29 #endif // NET_REPORTING_REPORTING_NETWORK_CHANGE_OBSERVER_H_
OLDNEW
« no previous file with comments | « net/reporting/reporting_context.cc ('k') | net/reporting/reporting_network_change_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698