blob: 296935130b883b9c1afc9fe5702a64c6d17bb369 [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.
#ifndef SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_
#define SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_
#include "base/macros.h"
#include "base/task_runner.h"
#include "mojo/public/cpp/application/application_impl.h"
#include "services/url_response_disk_cache/url_response_disk_cache_app.h"
#include "shell/application_manager/application_loader.h"
namespace shell {
class URLResponseDiskCacheLoader : public ApplicationLoader {
public:
URLResponseDiskCacheLoader(scoped_refptr<base::TaskRunner> task_runner,
mojo::URLResponseDiskCacheDelegate* delegate);
~URLResponseDiskCacheLoader() override;
private:
// ApplicationLoader overrides:
void Load(
const GURL& url,
mojo::InterfaceRequest<mojo::Application> application_request) override;
mojo::URLResponseDiskCacheApp url_response_disk_cache_app_;
DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheLoader);
};
} // namespace shell
#endif // SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_