| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 IOS_WEB_WEBUI_MOJO_FACADE_H_ | 5 #ifndef IOS_WEB_WEBUI_MOJO_FACADE_H_ |
| 6 #define IOS_WEB_WEBUI_MOJO_FACADE_H_ | 6 #define IOS_WEB_WEBUI_MOJO_FACADE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #import "base/ios/weak_nsobject.h" | 12 #import "base/ios/weak_nsobject.h" |
| 13 #include "mojo/public/cpp/system/watcher.h" | 13 #include "mojo/public/cpp/system/simple_watcher.h" |
| 14 | 14 |
| 15 @protocol CRWJSInjectionEvaluator; | 15 @protocol CRWJSInjectionEvaluator; |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class DictionaryValue; | 18 class DictionaryValue; |
| 19 class Value; | 19 class Value; |
| 20 } // base | 20 } // base |
| 21 | 21 |
| 22 namespace service_manager { | 22 namespace service_manager { |
| 23 namespace mojom { | 23 namespace mojom { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 std::unique_ptr<base::Value> HandleSupportCancelWatch( | 126 std::unique_ptr<base::Value> HandleSupportCancelWatch( |
| 127 const base::DictionaryValue* args); | 127 const base::DictionaryValue* args); |
| 128 | 128 |
| 129 // Provides interfaces. | 129 // Provides interfaces. |
| 130 service_manager::mojom::InterfaceProvider* interface_provider_; | 130 service_manager::mojom::InterfaceProvider* interface_provider_; |
| 131 // Runs JavaScript on WebUI page. | 131 // Runs JavaScript on WebUI page. |
| 132 base::WeakNSProtocol<id<CRWJSInjectionEvaluator>> script_evaluator_; | 132 base::WeakNSProtocol<id<CRWJSInjectionEvaluator>> script_evaluator_; |
| 133 // Id of the last created watch. | 133 // Id of the last created watch. |
| 134 int last_watch_id_; | 134 int last_watch_id_; |
| 135 // Currently active watches created through this facade. | 135 // Currently active watches created through this facade. |
| 136 std::map<int, std::unique_ptr<mojo::Watcher>> watchers_; | 136 std::map<int, std::unique_ptr<mojo::SimpleWatcher>> watchers_; |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // web | 139 } // web |
| 140 | 140 |
| 141 #endif // IOS_WEB_WEBUI_MOJO_FACADE_H_ | 141 #endif // IOS_WEB_WEBUI_MOJO_FACADE_H_ |
| OLD | NEW |