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

Unified Diff: content/browser/streams/stream_registry.h

Issue 2909123002: Deprecate NonThreadSafe in content/browser/streams 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/streams/stream_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/streams/stream_registry.h
diff --git a/content/browser/streams/stream_registry.h b/content/browser/streams/stream_registry.h
index c7b31ab779257749a452d5ad5655921559dface2..6ef17b1b65045e7ebc12a60df7cfe6d09f01af9d 100644
--- a/content/browser/streams/stream_registry.h
+++ b/content/browser/streams/stream_registry.h
@@ -12,7 +12,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "content/browser/streams/stream_register_observer.h"
#include "content/common/content_export.h"
#include "url/gurl.h"
@@ -22,7 +22,7 @@ namespace content {
class Stream;
// Maintains a mapping of blob: URLs to active streams.
-class CONTENT_EXPORT StreamRegistry : public base::NonThreadSafe {
+class CONTENT_EXPORT StreamRegistry {
public:
StreamRegistry();
virtual ~StreamRegistry();
@@ -74,6 +74,8 @@ class CONTENT_EXPORT StreamRegistry : public base::NonThreadSafe {
// with this registry.
size_t max_memory_usage_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(StreamRegistry);
};
« no previous file with comments | « no previous file | content/browser/streams/stream_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698