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

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

Issue 1983473002: ApplicationConnection devolution, part 3.1. (Closed) Base URL: https://github.com/domokit/mojo.git@master
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 #ifndef SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ 5 #ifndef SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_
6 #define SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ 6 #define SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_
7 7
8 #include "mojo/public/cpp/application/application_delegate.h" 8 #include "mojo/public/cpp/application/application_delegate.h"
9 #include "mojo/public/cpp/system/macros.h" 9 #include "mojo/public/cpp/system/macros.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 class ApplicationConnection; 12 namespace test {
13 13
14 namespace test {
15 class TestService; 14 class TestService;
16 class TestTimeService; 15 class TestTimeService;
17 16
18 class TestServiceApplication : public ApplicationDelegate { 17 class TestServiceApplication : public ApplicationDelegate {
19 public: 18 public:
20 TestServiceApplication(); 19 TestServiceApplication();
21 ~TestServiceApplication() override; 20 ~TestServiceApplication() override;
22 21
23 void Initialize(ApplicationImpl* app) override; 22 void Initialize(ApplicationImpl* app) override;
24 23
25 // ApplicationDelegate implementation. 24 // ApplicationDelegate implementation.
26 bool ConfigureIncomingConnection( 25 bool ConfigureIncomingConnection(
27 ServiceProviderImpl* service_provider_impl) override; 26 ServiceProviderImpl* service_provider_impl) override;
28 27
29 void AddRef(); 28 void AddRef();
30 void ReleaseRef(); 29 void ReleaseRef();
31 30
32 private: 31 private:
33 int ref_count_; 32 int ref_count_;
34 ApplicationImpl* app_impl_; 33 ApplicationImpl* app_impl_;
35 34
36 MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceApplication); 35 MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceApplication);
37 }; 36 };
38 37
39 } // namespace test 38 } // namespace test
40 } // namespace mojo 39 } // namespace mojo
41 40
42 #endif // SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_ 41 #endif // SERVICES_TEST_SERVICE_TEST_SERVICE_APPLICATION_H_
OLDNEW
« no previous file with comments | « services/test_service/test_request_tracker_impl.h ('k') | services/test_service/test_time_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698