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

Unified Diff: net/url_request/sdch_dictionary_fetcher.h

Issue 2910473005: Deprecate NonThreadSafe in net/ in favor of SequenceChecker/ThreadChecker. (Closed)
Patch Set: Fix chromecast compile 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
Index: net/url_request/sdch_dictionary_fetcher.h
diff --git a/net/url_request/sdch_dictionary_fetcher.h b/net/url_request/sdch_dictionary_fetcher.h
index 8096b6ac1b8df81f5afd2d6083f87ef385a717c0..dbbbedcbc785c49034f7271774a72ab86ba1ccba 100644
--- a/net/url_request/sdch_dictionary_fetcher.h
+++ b/net/url_request/sdch_dictionary_fetcher.h
@@ -16,7 +16,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "net/base/net_export.h"
#include "net/base/sdch_manager.h"
#include "net/url_request/url_fetcher_delegate.h"
@@ -33,8 +33,7 @@ class URLRequest;
// them serially, implementing the URLRequest::Delegate interface to
// handle callbacks (but see above TODO). It tracks all requests, only
// attempting to fetch each dictionary once.
-class NET_EXPORT SdchDictionaryFetcher : public URLRequest::Delegate,
- public base::NonThreadSafe {
+class NET_EXPORT SdchDictionaryFetcher : public URLRequest::Delegate {
public:
typedef base::Callback<void(const std::string& dictionary_text,
const GURL& dictionary_url,
@@ -121,6 +120,8 @@ class NET_EXPORT SdchDictionaryFetcher : public URLRequest::Delegate,
// use while fetching.
URLRequestContext* const context_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(SdchDictionaryFetcher);
};

Powered by Google App Engine
This is Rietveld 408576698