| 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 <memory> |
| 10 #include <set> | 10 #include <set> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.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; | |
| 22 | 21 |
| 23 class CONTENT_EXPORT WebUIImpl : public WebUI, | 22 class CONTENT_EXPORT WebUIImpl : public WebUI, |
| 24 public IPC::Listener, | 23 public IPC::Listener, |
| 25 public base::SupportsWeakPtr<WebUIImpl> { | 24 public base::SupportsWeakPtr<WebUIImpl> { |
| 26 public: | 25 public: |
| 27 WebUIImpl(WebContents* contents, const std::string& frame_name); | 26 WebUIImpl(WebContents* contents, const std::string& frame_name); |
| 28 ~WebUIImpl() override; | 27 ~WebUIImpl() override; |
| 29 | 28 |
| 30 // Called when a RenderFrame is created for a WebUI (reload after a renderer | 29 // Called when a RenderFrame is created for a WebUI (reload after a renderer |
| 31 // crash) or when a WebUI is created for a RenderFrame (i.e. navigating from | 30 // crash) or when a WebUI is created for a RenderFrame (i.e. navigating from |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 const std::string frame_name_; | 127 const std::string frame_name_; |
| 129 | 128 |
| 130 std::unique_ptr<WebUIController> controller_; | 129 std::unique_ptr<WebUIController> controller_; |
| 131 | 130 |
| 132 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); | 131 DISALLOW_COPY_AND_ASSIGN(WebUIImpl); |
| 133 }; | 132 }; |
| 134 | 133 |
| 135 } // namespace content | 134 } // namespace content |
| 136 | 135 |
| 137 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ | 136 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_IMPL_H_ |
| OLD | NEW |