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

Unified Diff: components/safe_browsing_db/v4_get_hash_protocol_manager.h

Issue 2915443002: Deprecate NonThreadSafe in components/safe_browsing_db in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/safe_browsing_db/v4_get_hash_protocol_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/v4_get_hash_protocol_manager.h
diff --git a/components/safe_browsing_db/v4_get_hash_protocol_manager.h b/components/safe_browsing_db/v4_get_hash_protocol_manager.h
index 7d9c2c2aff17e9a3ef47812e0c1446ea7695b15d..6e43e8897c968c9347d607b98eadf01ff7b2f9c9 100644
--- a/components/safe_browsing_db/v4_get_hash_protocol_manager.h
+++ b/components/safe_browsing_db/v4_get_hash_protocol_manager.h
@@ -20,7 +20,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "base/time/default_clock.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
@@ -139,8 +139,7 @@ struct FullHashCallbackInfo {
class V4GetHashProtocolManagerFactory;
-class V4GetHashProtocolManager : public net::URLFetcherDelegate,
- public base::NonThreadSafe {
+class V4GetHashProtocolManager : public net::URLFetcherDelegate {
public:
// Invoked when GetFullHashesWithApis completes.
// Parameters:
@@ -341,6 +340,8 @@ class V4GetHashProtocolManager : public net::URLFetcherDelegate,
std::vector<ThreatEntryType> threat_entry_types_;
std::vector<ThreatType> threat_types_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(V4GetHashProtocolManager);
};
« no previous file with comments | « no previous file | components/safe_browsing_db/v4_get_hash_protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698