OLD | NEW |
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_SHELL_PUBLIC_CPP_SERVICE_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_H_ |
6 #define SERVICES_SHELL_PUBLIC_CPP_SERVICE_H_ | 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "services/shell/public/cpp/interface_registry.h" | 12 #include "services/service_manager/public/cpp/interface_registry.h" |
13 | 13 |
14 namespace shell { | 14 namespace shell { |
15 | 15 |
16 class Connector; | 16 class Connector; |
17 class Identity; | 17 class Identity; |
18 class InterfaceRegistry; | 18 class InterfaceRegistry; |
19 class ServiceContext; | 19 class ServiceContext; |
20 | 20 |
21 // The primary contract between a Service and the Service Manager, receiving | 21 // The primary contract between a Service and the Service Manager, receiving |
22 // lifecycle notifications and connection requests. | 22 // lifecycle notifications and connection requests. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void set_context(std::unique_ptr<ServiceContext> context); | 58 void set_context(std::unique_ptr<ServiceContext> context); |
59 | 59 |
60 private: | 60 private: |
61 std::unique_ptr<ServiceContext> context_; | 61 std::unique_ptr<ServiceContext> context_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(Service); | 63 DISALLOW_COPY_AND_ASSIGN(Service); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace shell | 66 } // namespace shell |
67 | 67 |
68 #endif // SERVICES_SHELL_PUBLIC_CPP_SERVICE_H_ | 68 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_H_ |
OLD | NEW |