| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SHELL_APPLICATION_INSTANCE_H_ | 5 #ifndef MOJO_SHELL_APPLICATION_INSTANCE_H_ |
| 6 #define MOJO_SHELL_APPLICATION_INSTANCE_H_ | 6 #define MOJO_SHELL_APPLICATION_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/process/process_handle.h" | 15 #include "base/process/process_handle.h" |
| 16 #include "mojo/public/cpp/bindings/binding.h" | 16 #include "mojo/public/cpp/bindings/binding.h" |
| 17 #include "mojo/public/cpp/bindings/weak_binding_set.h" | 17 #include "mojo/public/cpp/bindings/binding_set.h" |
| 18 #include "mojo/shell/connect_params.h" | 18 #include "mojo/shell/connect_params.h" |
| 19 #include "mojo/shell/identity.h" | 19 #include "mojo/shell/identity.h" |
| 20 #include "mojo/shell/public/interfaces/application_manager.mojom.h" | 20 #include "mojo/shell/public/interfaces/application_manager.mojom.h" |
| 21 #include "mojo/shell/public/interfaces/shell.mojom.h" | 21 #include "mojo/shell/public/interfaces/shell.mojom.h" |
| 22 #include "mojo/shell/public/interfaces/shell_client.mojom.h" | 22 #include "mojo/shell/public/interfaces/shell_client.mojom.h" |
| 23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
| 24 | 24 |
| 25 namespace mojo { | 25 namespace mojo { |
| 26 namespace shell { | 26 namespace shell { |
| 27 | 27 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 ApplicationManager* const manager_; | 84 ApplicationManager* const manager_; |
| 85 // An id that identifies this instance. Distinct from pid, as a single process | 85 // An id that identifies this instance. Distinct from pid, as a single process |
| 86 // may vend multiple application instances, and this object may exist before a | 86 // may vend multiple application instances, and this object may exist before a |
| 87 // process is launched. | 87 // process is launched. |
| 88 const uint32_t id_; | 88 const uint32_t id_; |
| 89 const Identity identity_; | 89 const Identity identity_; |
| 90 const bool allow_any_application_; | 90 const bool allow_any_application_; |
| 91 mojom::ShellClientPtr shell_client_; | 91 mojom::ShellClientPtr shell_client_; |
| 92 Binding<mojom::Shell> binding_; | 92 Binding<mojom::Shell> binding_; |
| 93 Binding<mojom::PIDReceiver> pid_receiver_binding_; | 93 Binding<mojom::PIDReceiver> pid_receiver_binding_; |
| 94 WeakBindingSet<mojom::Connector> connectors_; | 94 BindingSet<mojom::Connector> connectors_; |
| 95 bool queue_requests_; | 95 bool queue_requests_; |
| 96 std::vector<ConnectParams*> queued_client_requests_; | 96 std::vector<ConnectParams*> queued_client_requests_; |
| 97 NativeRunner* native_runner_; | 97 NativeRunner* native_runner_; |
| 98 base::ProcessId pid_; | 98 base::ProcessId pid_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(ApplicationInstance); | 100 DISALLOW_COPY_AND_ASSIGN(ApplicationInstance); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace shell | 103 } // namespace shell |
| 104 } // namespace mojo | 104 } // namespace mojo |
| 105 | 105 |
| 106 #endif // MOJO_SHELL_APPLICATION_INSTANCE_H_ | 106 #endif // MOJO_SHELL_APPLICATION_INSTANCE_H_ |
| OLD | NEW |