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

Side by Side Diff: services/test_service/test_service_application.cc

Issue 1977023003: ApplicationConnection devolution, part 4 (the end). (Closed) Base URL: https://github.com/domokit/mojo.git@work790_app_conn_devo_3.1
Patch Set: Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/test_service/test_service_application.h" 5 #include "services/test_service/test_service_application.h"
6 6
7 #include <assert.h> 7 #include <assert.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "mojo/public/c/system/main.h" 11 #include "mojo/public/c/system/main.h"
12 #include "mojo/public/cpp/application/application_connection.h"
13 #include "mojo/public/cpp/application/application_runner.h" 12 #include "mojo/public/cpp/application/application_runner.h"
13 #include "mojo/public/cpp/application/service_provider_impl.h"
14 #include "mojo/public/cpp/utility/run_loop.h" 14 #include "mojo/public/cpp/utility/run_loop.h"
15 #include "services/test_service/test_service_impl.h" 15 #include "services/test_service/test_service_impl.h"
16 #include "services/test_service/test_time_service_impl.h" 16 #include "services/test_service/test_time_service_impl.h"
17 17
18 namespace mojo { 18 namespace mojo {
19 namespace test { 19 namespace test {
20 20
21 TestServiceApplication::TestServiceApplication() 21 TestServiceApplication::TestServiceApplication()
22 : ref_count_(0), app_impl_(nullptr) {} 22 : ref_count_(0), app_impl_(nullptr) {}
23 23
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 } // namespace test 58 } // namespace test
59 } // namespace mojo 59 } // namespace mojo
60 60
61 MojoResult MojoMain(MojoHandle application_request) { 61 MojoResult MojoMain(MojoHandle application_request) {
62 mojo::ApplicationRunner runner( 62 mojo::ApplicationRunner runner(
63 std::unique_ptr<mojo::test::TestServiceApplication>( 63 std::unique_ptr<mojo::test::TestServiceApplication>(
64 new mojo::test::TestServiceApplication())); 64 new mojo::test::TestServiceApplication()));
65 return runner.Run(application_request); 65 return runner.Run(application_request);
66 } 66 }
OLDNEW
« no previous file with comments | « services/test_service/test_request_tracker_application.cc ('k') | services/ui/input_manager/input_manager_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698