OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ |
6 #define CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ | 6 #define CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
| 9 #include <memory> |
9 #include <set> | 10 #include <set> |
10 | 11 |
11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "content/public/browser/web_ui.h" | 16 #include "content/public/browser/web_ui.h" |
17 #include "ipc/ipc_listener.h" | 17 #include "ipc/ipc_listener.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class RenderFrameHost; | 20 class RenderFrameHost; |
21 class RenderViewHost; | 21 class RenderViewHost; |
22 | 22 |
23 class CONTENT_EXPORT WebUIImpl : public WebUI, | 23 class CONTENT_EXPORT WebUIImpl : public WebUI, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // The WebUIMessageHandlers we own. | 110 // The WebUIMessageHandlers we own. |
111 ScopedVector<WebUIMessageHandler> handlers_; | 111 ScopedVector<WebUIMessageHandler> handlers_; |
112 | 112 |
113 // Non-owning pointer to the WebContents this WebUI is associated with. | 113 // Non-owning pointer to the WebContents this WebUI is associated with. |
114 WebContents* web_contents_; | 114 WebContents* web_contents_; |
115 | 115 |
116 // The name of the frame this WebUI is embedded in. If empty, the main frame | 116 // The name of the frame this WebUI is embedded in. If empty, the main frame |
117 // is used. | 117 // is used. |
118 const std::string frame_name_; | 118 const std::string frame_name_; |
119 | 119 |
120 scoped_ptr<WebUIController> controller_; | 120 std::unique_ptr<WebUIController> controller_; |
121 | 121 |
122 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); | 122 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); |
123 }; | 123 }; |
124 | 124 |
125 } // namespace content | 125 } // namespace content |
126 | 126 |
127 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ | 127 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ |
OLD | NEW |