blob: e9629ff8938947a91de6fe203d80c6474190f4dc [file] [log] [blame]
Benjamin Lerman5d429aa2015-05-07 16:21:00 +02001// 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
7namespace shell {
8
Benjamin Lermana9579a92015-07-28 10:30:26 +02009URLResponseDiskCacheLoader::URLResponseDiskCacheLoader(
Benjamin Lermanc440c742015-09-28 13:52:53 +020010 scoped_refptr<base::TaskRunner> task_runner,
11 mojo::URLResponseDiskCacheDelegate* delegate)
12 : url_response_disk_cache_(task_runner, delegate) {}
Benjamin Lerman5d429aa2015-05-07 16:21:00 +020013
14URLResponseDiskCacheLoader::~URLResponseDiskCacheLoader() {
15}
16
17void 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