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

Side by Side Diff: components/safe_browsing_db/v4_local_database_manager.h

Issue 2441923003: PVer4: Add UMA metrics for time taken to: load DB, do prefix check, (Closed)
Patch Set: git rebase Created 4 years, 1 month 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
OLDNEW
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
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
Nathan Parker 2016/10/21 20:21:19 I'm not clear on this description. Is it the full
vakh (use Gerrit instead) 2016/10/21 22:54:04 Done.
113 // time it takes to get the uncached full hashes from the service.
114 base::TimeTicks start;
115
112 // The SafeBrowsing lists to check hash prefixes in. 116 // The SafeBrowsing lists to check hash prefixes in.
113 StoresToCheck stores_to_check; 117 StoresToCheck stores_to_check;
114 118
115 // The URL that is being checked for being unsafe. 119 // The URL that is being checked for being unsafe.
116 GURL url; 120 GURL url;
117 121
118 // The metadata associated with the full hash of the severest match found 122 // The metadata associated with the full hash of the severest match found
119 // for that URL. 123 // for that URL.
120 ThreatMetadata url_metadata; 124 ThreatMetadata url_metadata;
121 }; 125 };
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 242
239 base::WeakPtrFactory<V4LocalDatabaseManager> weak_factory_; 243 base::WeakPtrFactory<V4LocalDatabaseManager> weak_factory_;
240 244
241 friend class base::RefCountedThreadSafe<V4LocalDatabaseManager>; 245 friend class base::RefCountedThreadSafe<V4LocalDatabaseManager>;
242 DISALLOW_COPY_AND_ASSIGN(V4LocalDatabaseManager); 246 DISALLOW_COPY_AND_ASSIGN(V4LocalDatabaseManager);
243 }; // class V4LocalDatabaseManager 247 }; // class V4LocalDatabaseManager
244 248
245 } // namespace safe_browsing 249 } // namespace safe_browsing
246 250
247 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_ 251 #endif // COMPONENTS_SAFE_BROWSING_DB_V4_LOCAL_DATABASE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698