| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |