blob: e9629ff8938947a91de6fe203d80c6474190f4dc [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "shell/url_response_disk_cache_loader.h"
namespace shell {
URLResponseDiskCacheLoader::URLResponseDiskCacheLoader(
scoped_refptr<base::TaskRunner> task_runner,
mojo::URLResponseDiskCacheDelegate* delegate)
: url_response_disk_cache_(task_runner, delegate) {}
URLResponseDiskCacheLoader::~URLResponseDiskCacheLoader() {
}
void URLResponseDiskCacheLoader::Load(
const GURL& url,
mojo::InterfaceRequest<mojo::Application> application_request) {
DCHECK(application_request.is_pending());
application_.reset(new mojo::ApplicationImpl(&url_response_disk_cache_,
application_request.Pass()));
}
} // namespace shell