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/android/android_handler_loader.h" | 5 #include "shell/service_cache_loader.h" |
6 | 6 |
7 namespace shell { | 7 namespace shell { |
8 | 8 |
9 AndroidHandlerLoader::AndroidHandlerLoader() { | 9 ServiceCacheLoader::ServiceCacheLoader() { |
10 } | 10 } |
11 | 11 |
12 AndroidHandlerLoader::~AndroidHandlerLoader() { | 12 ServiceCacheLoader::~ServiceCacheLoader() { |
13 } | 13 } |
14 | 14 |
15 void AndroidHandlerLoader::Load( | 15 void ServiceCacheLoader::Load( |
16 const GURL& url, | 16 const GURL& url, |
17 mojo::InterfaceRequest<mojo::Application> application_request) { | 17 mojo::InterfaceRequest<mojo::Application> application_request) { |
18 DCHECK(application_request.is_pending()); | 18 DCHECK(application_request.is_pending()); |
19 application_.reset( | 19 application_.reset( |
20 new mojo::ApplicationImpl(&android_handler_, application_request.Pass())); | 20 new mojo::ApplicationImpl(&service_cache_, application_request.Pass())); |
21 } | 21 } |
22 | 22 |
23 } // namespace shell | 23 } // namespace shell |
OLD | NEW |