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_APPLICATION_APPLICATION_IMPL_H_ | 5 #ifndef MOJO_PUBLIC_APPLICATION_APPLICATION_IMPL_H_ |
6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_IMPL_H_ | 6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_IMPL_H_ |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "mojo/public/cpp/application/application_connection.h" | 9 #include "mojo/public/cpp/application/application_connection.h" |
10 #include "mojo/public/cpp/application/application_delegate.h" | 10 #include "mojo/public/cpp/application/application_delegate.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 void OnShellError() { | 108 void OnShellError() { |
109 delegate_->Quit(); | 109 delegate_->Quit(); |
110 ClearConnections(); | 110 ClearConnections(); |
111 Terminate(); | 111 Terminate(); |
112 } | 112 } |
113 | 113 |
114 // Application implementation. | 114 // Application implementation. |
115 void AcceptConnection(const String& requestor_url, | 115 void AcceptConnection(const String& requestor_url, |
116 InterfaceRequest<ServiceProvider> services, | 116 InterfaceRequest<ServiceProvider> services, |
117 ServiceProviderPtr exposed_services) override; | 117 ServiceProviderPtr exposed_services, |
| 118 const String& url) override; |
118 | 119 |
119 void RequestQuit() override; | 120 void RequestQuit() override; |
120 | 121 |
121 typedef std::vector<internal::ServiceRegistry*> ServiceRegistryList; | 122 typedef std::vector<internal::ServiceRegistry*> ServiceRegistryList; |
122 | 123 |
123 ServiceRegistryList incoming_service_registries_; | 124 ServiceRegistryList incoming_service_registries_; |
124 ServiceRegistryList outgoing_service_registries_; | 125 ServiceRegistryList outgoing_service_registries_; |
125 ApplicationDelegate* delegate_; | 126 ApplicationDelegate* delegate_; |
126 Binding<Application> binding_; | 127 Binding<Application> binding_; |
127 ShellPtr shell_; | 128 ShellPtr shell_; |
128 ShellPtrWatcher* shell_watch_; | 129 ShellPtrWatcher* shell_watch_; |
129 std::string url_; | 130 std::string url_; |
130 std::vector<std::string> args_; | 131 std::vector<std::string> args_; |
131 | 132 |
132 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); | 133 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); |
133 }; | 134 }; |
134 | 135 |
135 } // namespace mojo | 136 } // namespace mojo |
136 | 137 |
137 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_IMPL_H_ | 138 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_IMPL_H_ |
OLD | NEW |