| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_ | 5 #ifndef SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_ |
| 6 #define SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_ | 6 #define SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/task_runner.h" | 9 #include "base/task_runner.h" |
| 10 #include "mojo/public/cpp/application/application_impl.h" | |
| 11 #include "services/url_response_disk_cache/url_response_disk_cache_app.h" | 10 #include "services/url_response_disk_cache/url_response_disk_cache_app.h" |
| 12 #include "shell/application_manager/application_loader.h" | 11 #include "shell/application_manager/application_loader.h" |
| 13 | 12 |
| 14 namespace shell { | 13 namespace shell { |
| 15 | 14 |
| 16 class URLResponseDiskCacheLoader : public ApplicationLoader { | 15 class URLResponseDiskCacheLoader : public ApplicationLoader { |
| 17 public: | 16 public: |
| 18 URLResponseDiskCacheLoader(scoped_refptr<base::TaskRunner> task_runner, | 17 URLResponseDiskCacheLoader(scoped_refptr<base::TaskRunner> task_runner, |
| 19 mojo::URLResponseDiskCacheDelegate* delegate); | 18 mojo::URLResponseDiskCacheDelegate* delegate); |
| 20 ~URLResponseDiskCacheLoader() override; | 19 ~URLResponseDiskCacheLoader() override; |
| 21 | 20 |
| 22 private: | 21 private: |
| 23 // ApplicationLoader overrides: | 22 // ApplicationLoader overrides: |
| 24 void Load( | 23 void Load( |
| 25 const GURL& url, | 24 const GURL& url, |
| 26 mojo::InterfaceRequest<mojo::Application> application_request) override; | 25 mojo::InterfaceRequest<mojo::Application> application_request) override; |
| 27 | 26 |
| 28 mojo::URLResponseDiskCacheApp url_response_disk_cache_app_; | 27 mojo::URLResponseDiskCacheApp url_response_disk_cache_app_; |
| 29 | 28 |
| 30 DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheLoader); | 29 DISALLOW_COPY_AND_ASSIGN(URLResponseDiskCacheLoader); |
| 31 }; | 30 }; |
| 32 | 31 |
| 33 } // namespace shell | 32 } // namespace shell |
| 34 | 33 |
| 35 #endif // SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_ | 34 #endif // SHELL_URL_RESPONSE_DISK_CACHE_LOADER_H_ |
| OLD | NEW |