| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "services/prediction/prediction_service_impl.h" | 5 #include "services/prediction/prediction_service_impl.h" |
| 6 | 6 |
| 7 #include "mojo/application/application_runner_chromium.h" | 7 #include "mojo/application/application_runner_chromium.h" |
| 8 #include "mojo/public/c/system/main.h" | 8 #include "mojo/public/c/system/main.h" |
| 9 #include "mojo/public/cpp/application/application_connection.h" | 9 #include "mojo/public/cpp/application/service_provider_impl.h" |
| 10 | 10 |
| 11 namespace prediction { | 11 namespace prediction { |
| 12 | 12 |
| 13 PredictionServiceImpl::PredictionServiceImpl( | 13 PredictionServiceImpl::PredictionServiceImpl( |
| 14 mojo::InterfaceRequest<PredictionService> request) | 14 mojo::InterfaceRequest<PredictionService> request) |
| 15 : strong_binding_(this, request.Pass()) { | 15 : strong_binding_(this, request.Pass()) { |
| 16 ProximityInfoFactory proximity_info; | 16 ProximityInfoFactory proximity_info; |
| 17 proximity_settings_ = scoped_ptr<latinime::ProximityInfo>( | 17 proximity_settings_ = scoped_ptr<latinime::ProximityInfo>( |
| 18 proximity_info.GetNativeProximityInfo()); | 18 proximity_info.GetNativeProximityInfo()); |
| 19 } | 19 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 44 return true; | 44 return true; |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace prediction | 47 } // namespace prediction |
| 48 | 48 |
| 49 MojoResult MojoMain(MojoHandle application_request) { | 49 MojoResult MojoMain(MojoHandle application_request) { |
| 50 mojo::ApplicationRunnerChromium runner( | 50 mojo::ApplicationRunnerChromium runner( |
| 51 new prediction::PredictionServiceDelegate()); | 51 new prediction::PredictionServiceDelegate()); |
| 52 return runner.Run(application_request); | 52 return runner.Run(application_request); |
| 53 } | 53 } |
| OLD | NEW |