Benjamin Lerman | 5d429aa | 2015-05-07 16:21:00 +0200 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "shell/url_response_disk_cache_loader.h" |
| 6 | |
| 7 | namespace shell { |
| 8 | |
Benjamin Lerman | a9579a9 | 2015-07-28 10:30:26 +0200 | [diff] [blame] | 9 | URLResponseDiskCacheLoader::URLResponseDiskCacheLoader( |
Benjamin Lerman | c440c74 | 2015-09-28 13:52:53 +0200 | [diff] [blame] | 10 | scoped_refptr<base::TaskRunner> task_runner, |
| 11 | mojo::URLResponseDiskCacheDelegate* delegate) |
| 12 | : url_response_disk_cache_(task_runner, delegate) {} |
Benjamin Lerman | 5d429aa | 2015-05-07 16:21:00 +0200 | [diff] [blame] | 13 | |
| 14 | URLResponseDiskCacheLoader::~URLResponseDiskCacheLoader() { |
| 15 | } |
| 16 | |
| 17 | void URLResponseDiskCacheLoader::Load( |
| 18 | const GURL& url, |
| 19 | mojo::InterfaceRequest<mojo::Application> application_request) { |
| 20 | DCHECK(application_request.is_pending()); |
| 21 | application_.reset(new mojo::ApplicationImpl(&url_response_disk_cache_, |
| 22 | application_request.Pass())); |
| 23 | } |
| 24 | |
| 25 | } // namespace shell |