Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: services/prediction/prediction_service_impl.h

Issue 2015643002: Add (optional) options to Run[Main]Application(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_ 5 #ifndef SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_
6 #define SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_ 6 #define SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "mojo/public/cpp/application/application_delegate.h"
10 #include "mojo/public/cpp/bindings/strong_binding.h" 9 #include "mojo/public/cpp/bindings/strong_binding.h"
11 #include "mojo/services/prediction/interfaces/prediction.mojom.h" 10 #include "mojo/services/prediction/interfaces/prediction.mojom.h"
12 #include "services/prediction/dictionary_service.h" 11 #include "services/prediction/dictionary_service.h"
13 12
14 namespace prediction { 13 namespace prediction {
15 14
16 class PredictionServiceImpl : public PredictionService { 15 class PredictionServiceImpl : public PredictionService {
17 public: 16 public:
18 explicit PredictionServiceImpl( 17 explicit PredictionServiceImpl(
19 mojo::InterfaceRequest<PredictionService> request); 18 mojo::InterfaceRequest<PredictionService> request);
20 ~PredictionServiceImpl() override; 19 ~PredictionServiceImpl() override;
21 20
22 // PredictionService implementation 21 // PredictionService implementation
23 void GetPredictionList(PredictionInfoPtr prediction_info, 22 void GetPredictionList(PredictionInfoPtr prediction_info,
24 const GetPredictionListCallback& callback) override; 23 const GetPredictionListCallback& callback) override;
25 24
26 private: 25 private:
27 mojo::StrongBinding<PredictionService> strong_binding_; 26 mojo::StrongBinding<PredictionService> strong_binding_;
28 27
29 scoped_ptr<latinime::ProximityInfo> proximity_settings_; 28 scoped_ptr<latinime::ProximityInfo> proximity_settings_;
30 DictionaryService dictionary_service_; 29 DictionaryService dictionary_service_;
31 30
32 DISALLOW_COPY_AND_ASSIGN(PredictionServiceImpl); 31 DISALLOW_COPY_AND_ASSIGN(PredictionServiceImpl);
33 }; 32 };
34 33
35 class PredictionServiceDelegate : public mojo::ApplicationDelegate {
36 public:
37 PredictionServiceDelegate();
38 ~PredictionServiceDelegate() override;
39
40 // mojo::ApplicationDelegate implementation
41 bool ConfigureIncomingConnection(
42 mojo::ServiceProviderImpl* service_provider_impl) override;
43 };
44
45 } // namespace prediction 34 } // namespace prediction
46 35
47 #endif // SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_ 36 #endif // SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698