Index: mojo/public/cpp/application/application_impl.h |
diff --git a/mojo/public/cpp/application/application_impl.h b/mojo/public/cpp/application/application_impl.h |
index 8d6ebd77c0ea3dbde551d1363d349bab8144e50b..ac43c4d394b77f0c559e668255cb5c37270acd04 100644 |
--- a/mojo/public/cpp/application/application_impl.h |
+++ b/mojo/public/cpp/application/application_impl.h |
@@ -60,6 +60,8 @@ class ApplicationImpl : public InterfaceImpl<Application> { |
Shell* shell() const { return shell_.get(); } |
+ const Array<String>& args() { return args_; } |
viettrungluu
2014/09/15 17:26:18
Needs comment.
DaveMoore
2014/09/15 22:35:08
Done.
|
+ |
// Establishes a new connection to an application. Caller does not own. |
ApplicationConnection* ConnectToApplication(const String& application_url); |
@@ -85,15 +87,19 @@ class ApplicationImpl : public InterfaceImpl<Application> { |
static void Terminate(); |
// Application implementation. |
+ virtual void Initialize(Array<String> args) MOJO_OVERRIDE; |
virtual void AcceptConnection(const String& requestor_url, |
ServiceProviderPtr provider) MOJO_OVERRIDE; |
typedef std::vector<internal::ServiceRegistry*> ServiceRegistryList; |
+ |
+ bool initialized_; |
ServiceRegistryList incoming_service_registries_; |
ServiceRegistryList outgoing_service_registries_; |
ApplicationDelegate* delegate_; |
ShellPtr shell_; |
ShellPtrWatcher* shell_watch_; |
+ Array<String> args_; |
MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationImpl); |
}; |