Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / safe_browsing / incident_reporting / tracked_preference_incident.h
blob6b979feba27a054df6260790142d32d1baf2b9df
1 // Copyright 2015 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.
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_TRACKED_PREFERENCE_INCIDENT_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_TRACKED_PREFERENCE_INCIDENT_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/safe_browsing/incident_reporting/incident.h"
11 namespace safe_browsing {
13 class ClientIncidentReport_IncidentData_TrackedPreferenceIncident;
15 // An incident representing a tracked preference that has been modified or
16 // cleared.
17 class TrackedPreferenceIncident : public Incident {
18 public:
19 TrackedPreferenceIncident(
20 scoped_ptr<ClientIncidentReport_IncidentData_TrackedPreferenceIncident>
21 tracked_preference,
22 bool is_personal);
23 ~TrackedPreferenceIncident() override;
25 // Incident methods:
26 IncidentType GetType() const override;
27 std::string GetKey() const override;
28 uint32_t ComputeDigest() const override;
29 scoped_ptr<ClientIncidentReport_IncidentData> TakePayload() override;
31 private:
32 bool is_personal_;
34 DISALLOW_COPY_AND_ASSIGN(TrackedPreferenceIncident);
37 } // namespace safe_browsing
39 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_TRACKED_PREFERENCE_INCIDENT_H_