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

Unified Diff: content/public/test/test_download_request_handler.h

Issue 2913673002: Replace deprecated base::NonThreadSafe in content/public/test 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 | content/public/test/test_download_request_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_download_request_handler.h
diff --git a/content/public/test/test_download_request_handler.h b/content/public/test/test_download_request_handler.h
index 2fa1a0dea25d64e6d40f3a899ec8b532d701fb90..aabd28236af13416e8d51a6e50ebff59fe01207b 100644
--- a/content/public/test/test_download_request_handler.h
+++ b/content/public/test/test_download_request_handler.h
@@ -14,7 +14,7 @@
#include "base/files/file.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "net/base/completion_callback.h"
#include "net/base/net_errors.h"
#include "net/http/http_byte_range.h"
@@ -62,7 +62,7 @@ namespace content {
//
// At this point, you can initiate a URLRequest for request_handler.url(). The
// request will fail when offset 100 is reached with the error specified above.
-class TestDownloadRequestHandler : public base::NonThreadSafe {
+class TestDownloadRequestHandler {
public:
// OnStartHandler can be used to intercept the Start() event of a new
// URLRequest. Set it as the |on_start_handler| member of Parameters below.
@@ -319,6 +319,9 @@ class TestDownloadRequestHandler : public base::NonThreadSafe {
GURL url_;
base::WeakPtr<Interceptor> interceptor_;
+
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(TestDownloadRequestHandler);
};
« no previous file with comments | « no previous file | content/public/test/test_download_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698