| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ | 5 #ifndef COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ |
| 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ | 6 #define COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ |
| 7 | 7 |
| 8 // A class that provides the interface between the SafeBrowsing protocol manager | 8 // A class that provides the interface between the SafeBrowsing protocol manager |
| 9 // and database that holds the downloaded updates. | 9 // and database that holds the downloaded updates. |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // The SafeBrowsing client that's waiting for the safe/unsafe verdict. | 102 // The SafeBrowsing client that's waiting for the safe/unsafe verdict. |
| 103 Client* client; | 103 Client* client; |
| 104 | 104 |
| 105 // Determines which funtion from the |client| needs to be called once we | 105 // Determines which funtion from the |client| needs to be called once we |
| 106 // know whether the URL in |url| is safe or unsafe. | 106 // know whether the URL in |url| is safe or unsafe. |
| 107 ClientCallbackType client_callback_type; | 107 ClientCallbackType client_callback_type; |
| 108 | 108 |
| 109 // The threat verdict for the URL being checked. | 109 // The threat verdict for the URL being checked. |
| 110 SBThreatType result_threat_type; | 110 SBThreatType result_threat_type; |
| 111 | 111 |
| 112 // When the check was sent to the SafeBrowsing service. Used to record the |
| 113 // time it takes to get the uncached full hashes from the service (or a |
| 114 // cached full hash response). |
| 115 base::TimeTicks full_hash_check_start; |
| 116 |
| 112 // The SafeBrowsing lists to check hash prefixes in. | 117 // The SafeBrowsing lists to check hash prefixes in. |
| 113 StoresToCheck stores_to_check; | 118 StoresToCheck stores_to_check; |
| 114 | 119 |
| 115 // The URL that is being checked for being unsafe. | 120 // The URL that is being checked for being unsafe. |
| 116 GURL url; | 121 GURL url; |
| 117 | 122 |
| 118 // The metadata associated with the full hash of the severest match found | 123 // The metadata associated with the full hash of the severest match found |
| 119 // for that URL. | 124 // for that URL. |
| 120 ThreatMetadata url_metadata; | 125 ThreatMetadata url_metadata; |
| 121 }; | 126 }; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 243 |
| 239 base::WeakPtrFactory<V4LocalDatabaseManager> weak_factory_; | 244 base::WeakPtrFactory<V4LocalDatabaseManager> weak_factory_; |
| 240 | 245 |
| 241 friend class base::RefCountedThreadSafe<V4LocalDatabaseManager>; | 246 friend class base::RefCountedThreadSafe<V4LocalDatabaseManager>; |
| 242 DISALLOW_COPY_AND_ASSIGN(V4LocalDatabaseManager); | 247 DISALLOW_COPY_AND_ASSIGN(V4LocalDatabaseManager); |
| 243 }; // class V4LocalDatabaseManager | 248 }; // class V4LocalDatabaseManager |
| 244 | 249 |
| 245 } // namespace safe_browsing | 250 } // namespace safe_browsing |
| 246 | 251 |
| 247 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ | 252 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ |
| OLD | NEW |