| 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 #include "shell/url_response_disk_cache_loader.h" | 5 #include "shell/url_response_disk_cache_loader.h" |
| 6 | 6 |
| 7 namespace shell { | 7 namespace shell { |
| 8 | 8 |
| 9 URLResponseDiskCacheLoader::URLResponseDiskCacheLoader( | 9 URLResponseDiskCacheLoader::URLResponseDiskCacheLoader( |
| 10 scoped_refptr<base::TaskRunner> task_runner, | 10 scoped_refptr<base::TaskRunner> task_runner, |
| 11 mojo::URLResponseDiskCacheDelegate* delegate) | 11 mojo::URLResponseDiskCacheDelegate* delegate) |
| 12 : url_response_disk_cache_(task_runner, delegate) {} | 12 : url_response_disk_cache_app_(task_runner, delegate) {} |
| 13 | 13 |
| 14 URLResponseDiskCacheLoader::~URLResponseDiskCacheLoader() { | 14 URLResponseDiskCacheLoader::~URLResponseDiskCacheLoader() {} |
| 15 } | |
| 16 | 15 |
| 17 void URLResponseDiskCacheLoader::Load( | 16 void URLResponseDiskCacheLoader::Load( |
| 18 const GURL& url, | 17 const GURL& url, |
| 19 mojo::InterfaceRequest<mojo::Application> application_request) { | 18 mojo::InterfaceRequest<mojo::Application> application_request) { |
| 20 DCHECK(application_request.is_pending()); | 19 DCHECK(application_request.is_pending()); |
| 21 application_.reset(new mojo::ApplicationImpl(&url_response_disk_cache_, | 20 url_response_disk_cache_app_.Bind(application_request.Pass()); |
| 22 application_request.Pass())); | |
| 23 } | 21 } |
| 24 | 22 |
| 25 } // namespace shell | 23 } // namespace shell |
| OLD | NEW |