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 MOJO_PUBLIC_CPP_APPLICATION_APPLICATION_IMPL_H_ | 5 #ifndef MOJO_PUBLIC_CPP_APPLICATION_APPLICATION_IMPL_H_ |
6 #define MOJO_PUBLIC_CPP_APPLICATION_APPLICATION_IMPL_H_ | 6 #define MOJO_PUBLIC_CPP_APPLICATION_APPLICATION_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "mojo/public/cpp/application/application_delegate.h" | 12 #include "mojo/public/cpp/application/application_delegate.h" |
13 #include "mojo/public/cpp/application/lib/service_registry.h" | 13 #include "mojo/public/cpp/application/lib/service_registry.h" |
14 #include "mojo/public/cpp/system/macros.h" | 14 #include "mojo/public/cpp/system/macros.h" |
15 #include "mojo/public/interfaces/application/application.mojom.h" | 15 #include "mojo/public/interfaces/application/application.mojom.h" |
16 #include "mojo/public/interfaces/application/application_connector.mojom.h" | 16 #include "mojo/public/interfaces/application/application_connector.mojom.h" |
17 #include "mojo/public/interfaces/application/shell.mojom.h" | 17 #include "mojo/public/interfaces/application/shell.mojom.h" |
18 | 18 |
19 namespace mojo { | 19 namespace mojo { |
20 | 20 |
21 class ApplicationConnection; | |
22 | |
23 // Implements the Application interface, which the shell uses for basic | 21 // Implements the Application interface, which the shell uses for basic |
24 // communication with an application (e.g., to connect clients to services | 22 // communication with an application (e.g., to connect clients to services |
25 // provided by an application). Also provides the application access to the | 23 // provided by an application). Also provides the application access to the |
26 // Shell, which, e.g., may be used by an application to connect to other | 24 // Shell, which, e.g., may be used by an application to connect to other |
27 // services. | 25 // services. |
28 // | 26 // |
29 // Typically, you create one or more classes implementing your APIs (e.g., | 27 // Typically, you create one or more classes implementing your APIs (e.g., |
30 // FooImpl implementing Foo). See bindings/binding.h for more information. Then | 28 // FooImpl implementing Foo). See bindings/binding.h for more information. Then |
31 // you implement an mojo::ApplicationDelegate that either is or owns a | 29 // you implement an mojo::ApplicationDelegate that either is or owns a |
32 // mojo::InterfaceFactory<Foo> and whose ConfigureIncomingConnection() adds that | 30 // mojo::InterfaceFactory<Foo> and whose ConfigureIncomingConnection() adds that |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 ShellPtr shell_; | 90 ShellPtr shell_; |
93 std::string url_; | 91 std::string url_; |
94 std::vector<std::string> args_; | 92 std::vector<std::string> args_; |
95 | 93 |
96 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); | 94 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); |
97 }; | 95 }; |
98 | 96 |
99 } // namespace mojo | 97 } // namespace mojo |
100 | 98 |
101 #endif // MOJO_PUBLIC_CPP_APPLICATION_APPLICATION_IMPL_H_ | 99 #endif // MOJO_PUBLIC_CPP_APPLICATION_APPLICATION_IMPL_H_ |
OLD | NEW |