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

Side by Side Diff: services/ui/ime/ime_server_impl.h

Issue 2645683007: mash: Makes mash and service:ui not establish outgoing connections (Closed)
Patch Set: update catalog Created 3 years, 11 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
« no previous file with comments | « services/ui/ime/BUILD.gn ('k') | services/ui/ime/ime_server_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_UI_IME_IME_SERVER_IMPL_H_ 5 #ifndef SERVICES_UI_IME_IME_SERVER_IMPL_H_
6 #define SERVICES_UI_IME_IME_SERVER_IMPL_H_ 6 #define SERVICES_UI_IME_IME_SERVER_IMPL_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "mojo/public/cpp/bindings/binding_set.h" 10 #include "mojo/public/cpp/bindings/binding_set.h"
11 #include "services/catalog/public/interfaces/catalog.mojom.h"
12 #include "services/ui/public/interfaces/ime/ime.mojom.h" 11 #include "services/ui/public/interfaces/ime/ime.mojom.h"
13 12
14 namespace service_manager { 13 namespace service_manager {
15 class Connector; 14 class Connector;
16 } 15 }
17 16
18 namespace ui { 17 namespace ui {
19 18
20 class IMEServerImpl : public mojom::IMEServer { 19 class IMEServerImpl : public mojom::IMEServer {
21 public: 20 public:
22 IMEServerImpl(); 21 IMEServerImpl();
23 ~IMEServerImpl() override; 22 ~IMEServerImpl() override;
24 23
25 void Init(service_manager::Connector* connector, bool is_test_config); 24 void Init(service_manager::Connector* connector, bool is_test_config);
26 void AddBinding(mojom::IMEServerRequest request); 25 void AddBinding(mojom::IMEServerRequest request);
27 void OnDriverChanged(mojom::IMEDriverPtr driver); 26 void OnDriverChanged(mojom::IMEDriverPtr driver);
28 27
29 private: 28 private:
30 // mojom::IMEServer: 29 // mojom::IMEServer:
31 void StartSession(mojom::StartSessionDetailsPtr details) override; 30 void StartSession(mojom::StartSessionDetailsPtr details) override;
32 31
33 void OnGotCatalogEntries(std::vector<catalog::mojom::EntryPtr> entries);
34
35 service_manager::Connector* connector_;
36 catalog::mojom::CatalogPtr catalog_;
37 mojo::BindingSet<mojom::IMEServer> bindings_; 32 mojo::BindingSet<mojom::IMEServer> bindings_;
38 mojom::IMEDriverPtr driver_; 33 mojom::IMEDriverPtr driver_;
39 int current_id_; 34 int current_id_;
40 35
41 std::queue<mojom::StartSessionDetailsPtr> pending_requests_; 36 std::queue<mojom::StartSessionDetailsPtr> pending_requests_;
42 37
43 DISALLOW_COPY_AND_ASSIGN(IMEServerImpl); 38 DISALLOW_COPY_AND_ASSIGN(IMEServerImpl);
44 }; 39 };
45 40
46 } // namespace ui 41 } // namespace ui
47 42
48 #endif // SERVICES_UI_IME_IME_SERVER_IMPL_H_ 43 #endif // SERVICES_UI_IME_IME_SERVER_IMPL_H_
OLDNEW
« no previous file with comments | « services/ui/ime/BUILD.gn ('k') | services/ui/ime/ime_server_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698