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

Unified Diff: content/browser/loader/resource_scheduler.h

Issue 2907283002: Replace deprecated base::NonThreadSafe in content/browser/loader 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/browser/loader/resource_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_scheduler.h
diff --git a/content/browser/loader/resource_scheduler.h b/content/browser/loader/resource_scheduler.h
index 71014ce122f0598ccb85de7f173cc537fcbddfff..4ebc73416da794ebfd27b2fa256d21db0ab29ccf 100644
--- a/content/browser/loader/resource_scheduler.h
+++ b/content/browser/loader/resource_scheduler.h
@@ -14,7 +14,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "content/common/content_export.h"
#include "net/base/priority_queue.h"
#include "net/base/request_priority.h"
@@ -52,7 +52,7 @@ class ResourceThrottle;
// The scheduler may defer issuing the request via the ResourceThrottle
// interface or it may alter the request's priority by calling set_priority() on
// the URLRequest.
-class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
+class CONTENT_EXPORT ResourceScheduler {
public:
ResourceScheduler();
~ResourceScheduler();
@@ -150,6 +150,8 @@ class CONTENT_EXPORT ResourceScheduler : public base::NonThreadSafe {
bool yielding_scheduler_enabled_;
int max_requests_before_yielding_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(ResourceScheduler);
};
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698