OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_STATE_STORE_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_STATE_STORE_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_STATE_STORE_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_STATE_STORE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/prefs/scoped_user_pref_update.h" | 15 #include "components/prefs/scoped_user_pref_update.h" |
16 | 16 |
17 class Profile; | 17 class Profile; |
18 | 18 |
19 namespace safe_browsing { | 19 namespace safe_browsing { |
20 | 20 |
21 enum class IncidentType : int32_t; | 21 enum class IncidentType : int32_t; |
22 | 22 |
23 // The storage to track which incidents have been reported for a profile. Only | 23 // The storage to track which incidents have been reported for a profile. Only |
24 // usable on the UI thread. | 24 // usable on the UI thread. |
25 class StateStore { | 25 class StateStore { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // True when a Transaction instance is outstanding. | 104 // True when a Transaction instance is outstanding. |
105 bool has_transaction_; | 105 bool has_transaction_; |
106 #endif | 106 #endif |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(StateStore); | 108 DISALLOW_COPY_AND_ASSIGN(StateStore); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace safe_browsing | 111 } // namespace safe_browsing |
112 | 112 |
113 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_STATE_STORE_H_ | 113 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_STATE_STORE_H_ |
OLD | NEW |