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

Side by Side Diff: content/browser/appcache/appcache_job.cc

Issue 2911983004: Replace deprecated base::NonThreadSafe in content/browser/appcache in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « content/browser/appcache/appcache_job.h ('k') | content/browser/appcache/appcache_request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/appcache/appcache_job.h" 5 #include "content/browser/appcache/appcache_job.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/browser/appcache/appcache_request.h" 8 #include "content/browser/appcache/appcache_request.h"
9 #include "content/browser/appcache/appcache_url_loader_job.h" 9 #include "content/browser/appcache/appcache_url_loader_job.h"
10 #include "content/browser/appcache/appcache_url_request_job.h" 10 #include "content/browser/appcache/appcache_url_request_job.h"
(...skipping 14 matching lines...) Expand all
25 switches::kEnableNetworkService)) { 25 switches::kEnableNetworkService)) {
26 job.reset(new AppCacheURLLoaderJob); 26 job.reset(new AppCacheURLLoaderJob);
27 } else { 27 } else {
28 job.reset(new AppCacheURLRequestJob(request->GetURLRequest(), 28 job.reset(new AppCacheURLRequestJob(request->GetURLRequest(),
29 network_delegate, storage, host, 29 network_delegate, storage, host,
30 is_main_resource, restart_callback)); 30 is_main_resource, restart_callback));
31 } 31 }
32 return job; 32 return job;
33 } 33 }
34 34
35 AppCacheJob::~AppCacheJob() {} 35 AppCacheJob::~AppCacheJob() {
36 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
37 }
36 38
37 base::WeakPtr<AppCacheJob> AppCacheJob::GetWeakPtr() { 39 base::WeakPtr<AppCacheJob> AppCacheJob::GetWeakPtr() {
38 return weak_factory_.GetWeakPtr(); 40 return weak_factory_.GetWeakPtr();
39 } 41 }
40 42
41 net::URLRequestJob* AppCacheJob::AsURLRequestJob() { 43 net::URLRequestJob* AppCacheJob::AsURLRequestJob() {
42 return nullptr; 44 return nullptr;
43 } 45 }
44 46
45 AppCacheURLLoaderJob* AppCacheJob::AsURLLoaderJob() { 47 AppCacheURLLoaderJob* AppCacheJob::AsURLLoaderJob() {
46 return nullptr; 48 return nullptr;
47 } 49 }
48 50
49 AppCacheJob::AppCacheJob() : weak_factory_(this) {} 51 AppCacheJob::AppCacheJob() : weak_factory_(this) {}
50 52
51 } // namespace content 53 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_job.h ('k') | content/browser/appcache/appcache_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698