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

Side by Side Diff: services/ui/ime/test_ime_driver/test_ime_application.h

Issue 2476063002: Service Manager: Rework Service and ServiceContext lifetime (Closed)
Patch Set: . Created 4 years, 1 month 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/demo/mus_demo.cc ('k') | services/ui/ime/test_ime_driver/test_ime_application.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_TEST_IME_DRIVER_TEST_IME_APPLICATION_H_ 5 #ifndef SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_APPLICATION_H_
6 #define SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_APPLICATION_H_ 6 #define SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_APPLICATION_H_
7 7
8 #include "base/macros.h"
8 #include "services/service_manager/public/cpp/service.h" 9 #include "services/service_manager/public/cpp/service.h"
9 10
10 namespace ui { 11 namespace ui {
11 namespace test { 12 namespace test {
12 13
13 class TestIMEApplication : public service_manager::Service { 14 class TestIMEApplication : public service_manager::Service {
14 public: 15 public:
15 TestIMEApplication(); 16 TestIMEApplication();
16 ~TestIMEApplication() override; 17 ~TestIMEApplication() override;
17 18
18 private: 19 private:
19 // service_manager::Service: 20 // service_manager::Service:
21 void OnStart(service_manager::ServiceContext* context) override;
20 bool OnConnect(const service_manager::ServiceInfo& remote_info, 22 bool OnConnect(const service_manager::ServiceInfo& remote_info,
21 service_manager::InterfaceRegistry* registry) override; 23 service_manager::InterfaceRegistry* registry) override;
22 void OnStart(const service_manager::ServiceInfo& info) override;
23 24
24 DISALLOW_COPY_AND_ASSIGN(TestIMEApplication); 25 DISALLOW_COPY_AND_ASSIGN(TestIMEApplication);
25 }; 26 };
26 27
27 } // namespace test 28 } // namespace test
28 } // namespace ui 29 } // namespace ui
29 30
30 #endif // SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_APPLICATION_H_ 31 #endif // SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_APPLICATION_H_
OLDNEW
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/ime/test_ime_driver/test_ime_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698