blob: 4f754333fe714ee29da0e134635429a21d8ebd6b [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#ifndef SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_
6#define SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_
7
8#include "base/macros.h"
9#include "base/memory/scoped_ptr.h"
10#include "mojo/public/cpp/application/application_impl.h"
11#include "services/url_response_disk_cache/url_response_disk_cache_app.h"
12#include "shell/application_manager/application_loader.h"
13
14namespace shell {
15
16class URLResponseDiskCacheLoader : public ApplicationLoader {
17 public:
18 URLResponseDiskCacheLoader();
19 ~URLResponseDiskCacheLoader() override;
20
21 private:
22 // ApplicationLoader overrides:
23 void Load(
24 const GURL& url,
25 mojo::InterfaceRequest<mojo::Application> application_request) override;
26
27 mojo::URLResponseDiskCacheApp url_response_disk_cache_;
28 scoped_ptr<mojo::ApplicationImpl> application_;
29
30 DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheLoader);
31};
32
33} // namespace shell
34
35#endif // SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_