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_DART_EMBEDDER_DART_STATE_H_ | 5 #ifndef MOJO_DART_EMBEDDER_DART_STATE_H_ |
6 #define MOJO_DART_EMBEDDER_DART_STATE_H_ | 6 #define MOJO_DART_EMBEDDER_DART_STATE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "mojo/public/c/system/types.h" | 13 #include "mojo/public/c/system/types.h" |
14 #include "mojo/public/cpp/system/message_pipe.h" | 14 #include "mojo/public/cpp/system/message_pipe.h" |
15 #include "mojo/services/network/public/interfaces/network_service.mojom.h" | 15 #include "mojo/services/network/interfaces/network_service.mojom.h" |
16 #include "tonic/dart_library_provider.h" | 16 #include "tonic/dart_library_provider.h" |
17 #include "tonic/dart_state.h" | 17 #include "tonic/dart_state.h" |
18 | 18 |
19 namespace mojo { | 19 namespace mojo { |
20 namespace dart { | 20 namespace dart { |
21 | 21 |
22 struct IsolateCallbacks { | 22 struct IsolateCallbacks { |
23 base::Callback<void(Dart_Handle)> exception; | 23 base::Callback<void(Dart_Handle)> exception; |
24 }; | 24 }; |
25 | 25 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 std::string package_root_; | 102 std::string package_root_; |
103 std::set<MojoHandle> unclosed_handles_; | 103 std::set<MojoHandle> unclosed_handles_; |
104 std::unique_ptr<tonic::DartLibraryProvider> library_provider_; | 104 std::unique_ptr<tonic::DartLibraryProvider> library_provider_; |
105 mojo::NetworkServicePtr network_service_; | 105 mojo::NetworkServicePtr network_service_; |
106 }; | 106 }; |
107 | 107 |
108 } // namespace dart | 108 } // namespace dart |
109 } // namespace mojo | 109 } // namespace mojo |
110 | 110 |
111 #endif // MOJO_DART_EMBEDDER_DART_STATE_H_ | 111 #endif // MOJO_DART_EMBEDDER_DART_STATE_H_ |
OLD | NEW |