| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WEB_UI_IOS_IMPL_H_ | 5 #ifndef IOS_WEB_WEBUI_WEB_UI_IOS_IMPL_H_ |
| 6 #define IOS_WEB_WEBUI_WEB_UI_IOS_IMPL_H_ | 6 #define IOS_WEB_WEBUI_WEB_UI_IOS_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> |
| 9 | 10 |
| 10 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 12 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "ios/public/provider/web/web_ui_ios.h" | 15 #include "ios/public/provider/web/web_ui_ios.h" |
| 16 | 16 |
| 17 namespace web { | 17 namespace web { |
| 18 class WebStateImpl; | 18 class WebStateImpl; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace web { | 21 namespace web { |
| 22 | 22 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // A map of message name -> message handling callback. | 63 // A map of message name -> message handling callback. |
| 64 typedef std::map<std::string, MessageCallback> MessageCallbackMap; | 64 typedef std::map<std::string, MessageCallback> MessageCallbackMap; |
| 65 MessageCallbackMap message_callbacks_; | 65 MessageCallbackMap message_callbacks_; |
| 66 | 66 |
| 67 // The WebUIIOSMessageHandlers we own. | 67 // The WebUIIOSMessageHandlers we own. |
| 68 ScopedVector<WebUIIOSMessageHandler> handlers_; | 68 ScopedVector<WebUIIOSMessageHandler> handlers_; |
| 69 | 69 |
| 70 // Non-owning pointer to the WebStateImpl this WebUIIOS is associated with. | 70 // Non-owning pointer to the WebStateImpl this WebUIIOS is associated with. |
| 71 WebStateImpl* web_state_; | 71 WebStateImpl* web_state_; |
| 72 | 72 |
| 73 scoped_ptr<WebUIIOSController> controller_; | 73 std::unique_ptr<WebUIIOSController> controller_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(WebUIIOSImpl); | 75 DISALLOW_COPY_AND_ASSIGN(WebUIIOSImpl); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace web | 78 } // namespace web |
| 79 | 79 |
| 80 #endif // IOS_WEB_WEBUI_WEB_UI_IOS_IMPL_H_ | 80 #endif // IOS_WEB_WEBUI_WEB_UI_IOS_IMPL_H_ |
| OLD | NEW |