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

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

Issue 1247903003: Add spellcheck and word suggestion to the prediction service (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 4 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 "mojo/services/prediction/public/interfaces/prediction.mojom.h" 9 #include "mojo/services/prediction/public/interfaces/prediction.mojom.h"
9 10
10 namespace prediction { 11 namespace prediction {
11 12
12 class PredictionServiceImpl : public PredictionService { 13 class PredictionServiceImpl : public PredictionService {
13 public: 14 public:
14 explicit PredictionServiceImpl( 15 explicit PredictionServiceImpl(
15 mojo::InterfaceRequest<PredictionService> request); 16 mojo::InterfaceRequest<PredictionService> request);
16 ~PredictionServiceImpl() override; 17 ~PredictionServiceImpl() override;
17 18
18 // PredictionService implementation 19 // PredictionService implementation
19 void SetSettings(SettingsPtr settings) override;
20
21 void GetPredictionList(PredictionInfoPtr prediction_info, 20 void GetPredictionList(PredictionInfoPtr prediction_info,
22 const GetPredictionListCallback& callback) override; 21 const GetPredictionListCallback& callback) override;
23 22
24 private: 23 private:
25 Settings stored_settings_;
26 mojo::StrongBinding<PredictionService> strong_binding_; 24 mojo::StrongBinding<PredictionService> strong_binding_;
27 25
26 scoped_ptr<latinime::ProximityInfo> proximity_settings_;
27 DictionaryService dictionary_service_;
28
28 DISALLOW_COPY_AND_ASSIGN(PredictionServiceImpl); 29 DISALLOW_COPY_AND_ASSIGN(PredictionServiceImpl);
29 }; 30 };
30 31
31 class PredictionServiceDelegate 32 class PredictionServiceDelegate
32 : public mojo::ApplicationDelegate, 33 : public mojo::ApplicationDelegate,
33 public mojo::InterfaceFactory<PredictionService> { 34 public mojo::InterfaceFactory<PredictionService> {
34 public: 35 public:
35 PredictionServiceDelegate(); 36 PredictionServiceDelegate();
36 ~PredictionServiceDelegate() override; 37 ~PredictionServiceDelegate() override;
37 38
38 // mojo::ApplicationDelegate implementation 39 // mojo::ApplicationDelegate implementation
39 bool ConfigureIncomingConnection( 40 bool ConfigureIncomingConnection(
40 mojo::ApplicationConnection* connection) override; 41 mojo::ApplicationConnection* connection) override;
41 42
42 // mojo::InterfaceRequest<PredictionService> implementation 43 // mojo::InterfaceRequest<PredictionService> implementation
43 void Create(mojo::ApplicationConnection* connection, 44 void Create(mojo::ApplicationConnection* connection,
44 mojo::InterfaceRequest<PredictionService> request) override; 45 mojo::InterfaceRequest<PredictionService> request) override;
45 }; 46 };
46 47
47 } // namespace prediction 48 } // namespace prediction
48 49
49 #endif // SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_ 50 #endif // SERVICES_PREDICTION_PREDICTION_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698