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

Unified Diff: content/browser/appcache/appcache_request.h

Issue 2911983004: Replace deprecated base::NonThreadSafe in content/browser/appcache 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 | « content/browser/appcache/appcache_job.cc ('k') | content/browser/appcache/appcache_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_request.h
diff --git a/content/browser/appcache/appcache_request.h b/content/browser/appcache/appcache_request.h
index ce727c5579afbceb5256a5fb2994fe0159854ab5..4e14d6547a53e40d856dd0065a54afd48b3dd68f 100644
--- a/content/browser/appcache/appcache_request.h
+++ b/content/browser/appcache/appcache_request.h
@@ -6,8 +6,8 @@
#define CONTENT_BROWSER_APPCACHE_APPCACHE_REQUEST_H_
#include "base/logging.h"
+#include "base/sequence_checker.h"
#include "base/strings/string16.h"
-#include "base/threading/non_thread_safe.h"
#include "content/common/content_export.h"
#include "url/gurl.h"
@@ -21,10 +21,9 @@ struct ResourceRequest;
// Interface for an AppCache request. Subclasses implement this interface to
// wrap custom request objects like URLRequest, etc to ensure that these
// dependencies stay out of the AppCache code.
-class CONTENT_EXPORT AppCacheRequest
- : NON_EXPORTED_BASE(public base::NonThreadSafe) {
+class CONTENT_EXPORT AppCacheRequest {
public:
- virtual ~AppCacheRequest() {}
+ virtual ~AppCacheRequest();
// The URL for this request.
virtual const GURL& GetURL() const = 0;
@@ -73,6 +72,8 @@ class CONTENT_EXPORT AppCacheRequest
// GetURLRequest() and GetResourceRequest() should return valid results.
virtual ResourceRequest* GetResourceRequest();
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(AppCacheRequest);
};
« no previous file with comments | « content/browser/appcache/appcache_job.cc ('k') | content/browser/appcache/appcache_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698