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

Unified Diff: components/invalidation/impl/gcm_network_channel.h

Issue 2909113002: Deprecate NonThreadSafe in components/invalidation 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
Index: components/invalidation/impl/gcm_network_channel.h
diff --git a/components/invalidation/impl/gcm_network_channel.h b/components/invalidation/impl/gcm_network_channel.h
index ec40aab31cbaff7a2c94102f0734b3455e46f109..f82bb0eac4cd34ccffdd26be5db1828f23e7055a 100644
--- a/components/invalidation/impl/gcm_network_channel.h
+++ b/components/invalidation/impl/gcm_network_channel.h
@@ -10,7 +10,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "components/invalidation/impl/gcm_network_channel_delegate.h"
#include "components/invalidation/impl/sync_system_resources.h"
#include "components/invalidation/public/invalidation_export.h"
@@ -49,8 +49,7 @@ struct GCMNetworkChannelDiagnostic {
class INVALIDATION_EXPORT GCMNetworkChannel
: public SyncNetworkChannel,
public net::URLFetcherDelegate,
- public net::NetworkChangeNotifier::NetworkChangeObserver,
- public base::NonThreadSafe {
+ public net::NetworkChangeNotifier::NetworkChangeObserver {
public:
GCMNetworkChannel(
scoped_refptr<net::URLRequestContextGetter> request_context_getter,
@@ -127,6 +126,8 @@ class INVALIDATION_EXPORT GCMNetworkChannel
GCMNetworkChannelDiagnostic diagnostic_info_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
base::WeakPtrFactory<GCMNetworkChannel> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(GCMNetworkChannel);
« no previous file with comments | « components/invalidation/impl/gcm_invalidation_bridge.cc ('k') | components/invalidation/impl/gcm_network_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698