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 SERVICES_REAPER_REAPER_IMPL_H_ | 5 #ifndef SERVICES_REAPER_REAPER_IMPL_H_ |
6 #define SERVICES_REAPER_REAPER_IMPL_H_ | 6 #define SERVICES_REAPER_REAPER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "mojo/common/weak_binding_set.h" | 12 #include "mojo/common/binding_set.h" |
13 #include "mojo/public/cpp/application/application_delegate.h" | 13 #include "mojo/public/cpp/application/application_delegate.h" |
14 #include "mojo/public/cpp/application/interface_factory.h" | 14 #include "mojo/public/cpp/application/interface_factory.h" |
15 #include "mojo/public/cpp/bindings/array.h" | 15 #include "mojo/public/cpp/bindings/array.h" |
16 #include "mojo/public/cpp/bindings/callback.h" | 16 #include "mojo/public/cpp/bindings/callback.h" |
17 #include "services/reaper/diagnostics.mojom.h" | 17 #include "services/reaper/diagnostics.mojom.h" |
18 #include "services/reaper/reaper.mojom.h" | 18 #include "services/reaper/reaper.mojom.h" |
19 #include "services/reaper/scythe.mojom.h" | 19 #include "services/reaper/scythe.mojom.h" |
20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
21 | 21 |
22 namespace mojo { | 22 namespace mojo { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 std::map<InternedURL, AppSecret> app_url_to_secret_; | 92 std::map<InternedURL, AppSecret> app_url_to_secret_; |
93 std::map<AppSecret, InternedURL> app_secret_to_url_; | 93 std::map<AppSecret, InternedURL> app_secret_to_url_; |
94 | 94 |
95 // TODO(aa): The values in at least the first-level map should probably be | 95 // TODO(aa): The values in at least the first-level map should probably be |
96 // heap-allocated. | 96 // heap-allocated. |
97 typedef std::map<uint32, NodeInfo> NodeMap; | 97 typedef std::map<uint32, NodeInfo> NodeMap; |
98 typedef std::map<InternedURL, NodeMap> AppMap; | 98 typedef std::map<InternedURL, NodeMap> AppMap; |
99 AppMap nodes_; | 99 AppMap nodes_; |
100 | 100 |
101 mojo::WeakBindingSet<Diagnostics> diagnostics_bindings_; | 101 mojo::BindingSet<Diagnostics> diagnostics_bindings_; |
102 | 102 |
103 std::set<InternedURL> roots_; | 103 std::set<InternedURL> roots_; |
104 ScythePtr scythe_; | 104 ScythePtr scythe_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(ReaperImpl); | 106 DISALLOW_COPY_AND_ASSIGN(ReaperImpl); |
107 }; | 107 }; |
108 | 108 |
109 #endif // SERVICES_REAPER_REAPER_IMPL_H_ | 109 #endif // SERVICES_REAPER_REAPER_IMPL_H_ |
110 | 110 |
111 } // namespace reaper | 111 } // namespace reaper |
OLD | NEW |